diff --git a/docs/3.0/actions.md b/docs/3.0/actions.md index a27b74e1..ee2d2db3 100644 --- a/docs/3.0/actions.md +++ b/docs/3.0/actions.md @@ -736,20 +736,29 @@ Here's an example of how you can define actions dividers: ```ruby def actions - action Avo::Actions::ToggleInactive - action Avo::Actions::ToggleAdmin - divider - action Avo::Actions::Sub::DummyAction - action Avo::Actions::DownloadFile - divider - action Avo::Actions::Test::NoConfirmationRedirect - action Avo::Actions::Test::CloseModal - end + action Avo::Actions::ToggleInactive + action Avo::Actions::ToggleAdmin + divider + action Avo::Actions::Sub::DummyAction + action Avo::Actions::DownloadFile + divider + action Avo::Actions::Test::NoConfirmationRedirect + action Avo::Actions::Test::CloseModal +end ``` ## Icon diff --git a/docs/3.0/customizable-controls.md b/docs/3.0/customizable-controls.md index ead4ca0d..d670013e 100644 --- a/docs/3.0/customizable-controls.md +++ b/docs/3.0/customizable-controls.md @@ -194,6 +194,10 @@ end Within the `list` block, the only permitted elements are `link_to` and `action`. For both `link_to` and `action`, you can include an optional `icon` parameter. +:::info + [`divider`](actions.html#divider) is also permitted within the `list` block. +::: + In addition to the `icon`, the `link_to` element can accept additional parameters such as `target: :_blank` or `rel: "noopener"`, or any other extra arguments you may want to provide for the link. These extra arguments help define specific behaviors for the link, like opening it in a new tab or ensuring security best practices are followed. diff --git a/docs/3.0/customization.md b/docs/3.0/customization.md index 5b38dd0a..ae9e1430 100644 --- a/docs/3.0/customization.md +++ b/docs/3.0/customization.md @@ -567,3 +567,26 @@ end Click to view record in Avo + +## Associations lookup list limit + + diff --git a/docs/3.0/fields/radio.md b/docs/3.0/fields/radio.md new file mode 100644 index 00000000..74b57e4f --- /dev/null +++ b/docs/3.0/fields/radio.md @@ -0,0 +1,62 @@ +--- +version: '3.15.0' +license: community +--- + +# Radio + +Radio field + +The `Radio` field is used to render radio buttons. It's useful when only one value can be selected in a given options group. + +### Field declaration example +Below is an example of declaring a `radio` field for a role: + +```ruby +field :role, + as: :radio, + name: "User role", + options: { + admin: "Administrator", + manager: "Manager", + writer: "Writer" + } +``` + + diff --git a/docs/3.0/fields/select.md b/docs/3.0/fields/select.md index ae6bf82d..9321fe2d 100644 --- a/docs/3.0/fields/select.md +++ b/docs/3.0/fields/select.md @@ -14,6 +14,7 @@ field :type, as: :select, options: { 'Large container': :large, 'Medium containe ## Options