I am having a touch UI component for which I am creating a dialog in AEM 6. I have a requirement to create 2 radio buttons in the touch dialog and if either one of them are selected, the corresponding value of the selected radio button should be displayed. however, I am not understanding how to create the radio button options. I have implemented the same in classic dialog where the xtype=selection and type=radiogroup is used, but I do not understand how to create it in touch dialog
相关问题
- JCR-SQL - contains function doesn't escape spe
- AEM DefaultValue written to JCR
- Android: Progress Dialog change ProgressDialog.set
- Webview with facebook login flickering in Dialog
- Creating TimePickerDialog with custom style in And
相关文章
- Checking & Unchecking Checkboxes inside a JQuery M
- How to show appropriate icon on dialog box
- What are event and UI parameters in Dialog
- Open file from windows file dialog with python aut
- Android - getting an error “no application can per
- Android 4.1.2 dialogs are called twice
- Fix display garbage left by WPF dialog window?
- Populating select-box options on changing pathfiel
Radio button group is not supported in AEM 6 Touch UI. Instead, you could use a dropdown? sling:resourceType="granite/ui/components/foundation/form/dropdown"
You can use Form Input - Radio . To create a radio button group give all radio buttons the same name. The resourceType of Radio input is
/libs/granite/ui/components/foundation/form/radio
.Sample Json of the Nodes :
Unlike the Classic UI Selection widget where the buttons are set under options node , radio buttons are independent and can be directly used in containers.
Here is a radio group example for CoralUI v1/v2. The
radiogroup
is optional, theradio
widgets on their own will still work. The group is only needed if you want to have a label for the group.NOTE: If you need a default value to be set before you even open the dialog, then you'll need to define it in the template (if it is a page dialog) or for the component.
For a component, to set the default value to
apple
you would add this in the.content.xml
:See also:
NOTE: