Commit graph

93 commits

Author SHA1 Message Date
Max Goldstein
c65bf4c17f Docs: Use Maybe in annotation
I caught this one just by reading, but it wouldn't be the worst idea to systematically make sure each example compiles.
2014-03-07 22:15:22 -05:00
Evan Czaplicki
4fcc11a785 Move Field.Style to be the first argument to field, password, and email.
Sites are likely to use a uniform field style across each page or
website, so moving this argument to the front makes it easier to create
custom functions (myField = field myStyle).
2014-03-07 14:46:46 -10:00
Evan Czaplicki
ed0380ef78 Try to improve documentation 2014-03-07 01:03:50 -10:00
Evan Czaplicki
cbf7a8633b Revert "Get rid of Selection, simplifying the field API"
This reverts commit 8e2c6989b4.
2014-03-03 00:12:02 -10:00
Evan Czaplicki
8e2c6989b4 Get rid of Selection, simplifying the field API
Real reason is that setSelectionRange also sets the focus. This
behavior makes sense, so the underlying issue is that setting the
selection for two fields is not meaningful because only one can have
focus.

How to set focus (for fields or inputs in general) is not really
answered yet, so I think it makes the most sense to leave it out for
now.
2014-03-03 00:08:58 -10:00
Evan Czaplicki
0dcee3ec46 Fix errors pointed out by @mgold 2014-03-02 17:16:21 -10:00
Evan Czaplicki
093d7afb34 Move all field related stuff to Graphics.Input.Field and add the ability to style fields 2014-03-01 22:43:21 -08:00
Evan Czaplicki
cc3c8704e2 Make docs nicer based on comments on list!
https://groups.google.com/forum/#!topic/elm-discuss/-2bQTi8G1Vg
2014-02-27 17:23:29 -05:00
Evan Czaplicki
d5df18d51a Merge branch 'dev' into input 2014-02-18 14:24:37 -05:00
Evan Czaplicki
a35f47fac9 Add examples for all exported functions 2014-02-18 14:21:12 -05:00
Evan Czaplicki
bb13c9c5b1 cosmetic: silly indentation changes in comments 2014-02-18 12:23:54 -05:00
Evan Czaplicki
0018d32627 Start using new Input type everywhere!
Whoo! :D
2014-02-18 12:14:10 -05:00
Evan Czaplicki
88e9e6756d Fix problem with checkboxes 2014-02-17 20:58:10 +01:00
Evan Czaplicki
250685b08d Switch to new syntax for opening modules 2014-02-17 17:56:09 +01:00
Evan Czaplicki
1c832af6b0 Attempt to revamp the Graphics.Input library, much testing still needed 2014-02-17 17:38:37 +01:00
Evan Czaplicki
4e23dc6a08 Mess with documentation for empty 2013-12-24 10:16:17 -08:00
Max New
6992d941c7 Add empty element 2013-12-20 23:35:36 -06:00
Paul Ivanov
b77fd96d68 fix typos in Graphics 2013-12-17 15:44:58 -08:00
Evan Czaplicki
3ae8b16109 Merge branch 'master' into dev 2013-10-29 15:40:12 +01:00
tomberek
1d0ce8e3f2 Updated the functions in "Transforming Forms" to use Float
Per: https://groups.google.com/forum/#!topic/elm-discuss/pdWc2_7JJDU

This should now match the Form type usage of Float.
2013-10-29 08:30:24 -04:00
Evan Czaplicki
56ecbbc70a Implement markdown interpolation 2013-10-25 17:36:30 +02:00
Evan Czaplicki
463873b771 Make docs nicer 2013-10-22 10:09:22 +02:00
Evan Czaplicki
692d8d8eac Throw errors for unbound type variables in ADTs and aliases, resolves #302 2013-10-19 10:39:23 -04:00
Evan Czaplicki
c6a9aa397c Convert to new docs format 2013-09-12 13:07:38 -07:00
Evan Czaplicki
4926d0773e Actually add content 2013-09-12 12:34:44 -07:00
Evan Czaplicki
2a18fb6302 Convert more libraries to the new doc format 2013-09-12 12:11:35 -07:00
Evan Czaplicki
8a255de2ba Put document structure in nicer location 2013-09-02 20:37:39 -07:00
Evan Czaplicki
c4d07300a1 Change the style of some documentation, experimenting with styles for elm-doc 2013-09-02 19:28:52 -07:00
Evan Czaplicki
7e1d95a108 Move the markdown function to the text library 2013-09-01 22:20:07 -07:00
Evan Czaplicki
0dea178cd6 Stop importing hidden things 2013-08-21 19:10:26 -07:00
Evan Czaplicki
df5b3f5932 Rename the Matrix2D type to Transform2D 2013-08-19 11:57:18 -07:00
Evan Czaplicki
552fe262c2 Switch back to using number instead of Float whenever it is appropriate 2013-08-10 20:01:48 -07:00
Evan Czaplicki
b23ff222a0 Add some documentation 2013-08-09 17:44:30 -07:00
Evan Czaplicki
e6e038d431 Fix rounding error in changing width and height of images 2013-08-03 12:55:22 -07:00
Evan Czaplicki
1abea68ea2 rename opacity to alpha to avoid name collision 2013-08-02 01:53:58 -07:00
Evan Czaplicki
8e54751626 Correctly generate a type for markdown blocks 2013-08-01 17:19:34 -07:00
Evan Czaplicki
3e4773ca2e Fix libraries to match new JS generation rules 2013-07-29 23:23:04 +02:00
Evan Czaplicki
748c608df2 Get standard libraries compiling (now that String is in Basics and Signal is in Signal) 2013-07-29 19:26:53 +02:00
Evan Czaplicki
fc6ce75344 Get Graphics/ compiling! 2013-07-27 13:06:22 +02:00
Evan Czaplicki
d6acea8b51 Get Input library in shape to compile 2013-07-27 12:37:54 +02:00
Evan Czaplicki
5234d6d294 Get Graphics/ libraries closer to compiling 2013-07-27 00:51:25 +02:00
evancz
afacd1b858 Add hoverable and hoverables 2013-06-15 00:49:22 -07:00
evancz
d2a0a0305a Add opacity to the collage API 2013-06-13 12:00:17 -07:00
evancz
ea0b6c3fda Add the size function and reorder the arguments to croppedImage 2013-05-25 15:08:44 +02:00
evancz
b247e4663b Add tiled image to the kinds of possible images. 2013-05-25 14:52:12 +02:00
evancz
dd9217b02f Correct the square function. 2013-05-24 09:50:18 +02:00
evancz
733712ffcd Fix customButton function. 2013-05-23 20:06:19 +02:00
evancz
2da0a59e35 Add basic drop down menus. 2013-05-23 12:44:57 +02:00
evancz
d31acc5c9d Minor bug fixes in RTS and libraries. 2013-05-21 10:03:51 +02:00
evancz
94bb5e5a31 Change the type of FieldState slightly. Now uses selectionStart and selectionEnd instead of the more ambiguous start and end.
Also add tons of documentation to `Graphics.Input`.

Also add the `emptyFieldState` value.
2013-05-20 15:35:44 +02:00