Ylbtech-ionic-css:ionic Radio Box |
1. Ionic Radio Box
The Ionic radio button is similar to the INPUT element of the standard type= "Radio". The following shows the radio buttons for the modern app type.
The Name property of the INPUT element for type= "Radio" in each Item-radio is the same. The Radio-icon class is used to display icons.
Ionic uses the <label> element in a single option to make it easier to click.
Instance
<Divclass= "List"><labelclass= "Item Item-radio"> <inputtype= "Radio"name= "group"value= "Go"checked= "Checked"> <Divclass= "Radio-content"> <Divclass= "Item-content">Go</Div> <Iclass= "Radio-icon Ion-checkmark"></I> </Div></label> <labelclass= "Item Item-radio"> <inputtype= "Radio"name= "group"value= "Python"> <Divclass= "Radio-content"> <Divclass= "Item-content">Python</Div> <Iclass= "Radio-icon Ion-checkmark"></I> </Div></label> <labelclass= "Item Item-radio"> <inputtype= "Radio"name= "group"value= "Ruby"> <Divclass= "Radio-content"> <Divclass= "Item-content">Ruby</Div> <Iclass= "Radio-icon Ion-checkmark"></I> </Div></label> <labelclass= "Item Item-radio"> <inputtype= "Radio"name= "group"value= ". Net"> <Divclass= "Radio-content"> <Divclass= "Item-content">. Net</Div> <Iclass= "Radio-icon Ion-checkmark"></I> </Div></label> <labelclass= "Item Item-radio"> <inputtype= "Radio"name= "group"value= "Java"> <Divclass= "Radio-content"> <Divclass= "Item-content">Java</Div> <Iclass= "Radio-icon Ion-checkmark"></I> </Div></label> <labelclass= "Item Item-radio"> <inputtype= "Radio"name= "group"value= "PHP"> <Divclass= "Radio-content"> <Divclass= "Item-content">PHP</Div> <Iclass= "Radio-icon Ion-checkmark"></I> </Div></label></Div>
Try it?
The results are as follows:
2.
1, HTTP://WWW.RUNOOB.COM/IONIC/IONIC-RADIO.HTML2,
|
Ylbtech Source: http://ylbtech.cnblogs.com/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility. |
Ionic-css:ionic Radio Box