mirror of
https://github.com/lektor/lektor-website.git
synced 2025-03-31 15:31:50 +02:00
Merge cb92dd278fefbee30860a789584d8f650f0834b0 into ea0b975d6a3791327fa95bba8a0dfbb07c8e9f01
This commit is contained in:
commit
bf8bcd9420
@ -61,10 +61,12 @@ The following options are used for all types:
|
||||
- `label`: the label for the field. This is shown in the UI in larger letters
|
||||
- `description`: an optional string that provides some description for the
|
||||
field that is shown in the UI to give a bit more explanation.
|
||||
- `addon_label`: an optional string that is supported by all types that are
|
||||
rendered as an input field. This string is shown as an UI label on the
|
||||
right side of the input field to give it more context. For instance, it can
|
||||
be used to clarify units of a field (pixel, percent etc.).
|
||||
- `addon_label`: an optional string or icon that is supported by all types
|
||||
that are rendered as an input field. This string or icon is shown as an UI
|
||||
label on the right side of the input field to give it more context. For
|
||||
instance, it can be used to clarify units of a field (pixel, percent etc.).
|
||||
If an icon is to be used it must be a valid [Fontawesome 4 :ext](https://fontawesome.com/v4.7.0/icons/)
|
||||
icon name between double brackets (e.g.: [[github]]).
|
||||
- `width`: defines the width of the input in the admin as a fraction. For
|
||||
instance `1/4` sets it to a quarter of the width, `1/2` to a half etc.
|
||||
- `size` can be set to `normal`, `small` or `large` to affect the size a
|
||||
|
@ -38,7 +38,8 @@ default = default
|
||||
This should be self explanatory. One thing that is different about blocks
|
||||
compared to regular models is that they support the `button_label` attribute
|
||||
which can be used to customize the label of the button that adds blocks to
|
||||
a flow.
|
||||
a flow. Similar to the `addon_label` attribute of the [Regular Models
|
||||
:ref](../), you can use an icon as a label instead.
|
||||
|
||||
## Templates
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user