Widget talk:Radio button

From Minecraft Wiki
Jump to: navigation, search


Not sure how to use this, can't find documentation. Tried copying into test page, filling in the HTML attributes, and it just displayed the raw markup.

Say I want to make something similar to Layered blueprint, but one layer is a circuit image, another layer is a circuit schematic, and maybe there are some variation layers — how would I do that? Can the labels be moved to top, left, or bottom sides? —munin · Grid Book and Quill.png Grid Stone Pickaxe.png · 21:27, 28 May 2017 (UTC)

Seems to work fine:
It's all a matter of styling. The layered blueprint's styling displays all the layers corresponding to the radio buttons prior to and including the checked one, with opacity so the layers underneath can be seen. If you can style the HTML to look how you want, then yes you can put the labels wherever. Otherwise another widget with the required HTML layout would have to be created. The radio buttons just provide a checked state which can be used in CSS for interactivity without requiring JS, which does of course impose limitations. It's possible you can reuse the styling used by {{layered blueprint}} and just change the styling for the labels. MajrTalk
11:52, 29 May 2017 (UTC)