[jbosstools-issues] [JBoss JIRA] (JBIDE-13778) Descriptions for jQuery Widget Palette elements

Daniel Azarov (JIRA) jira-events at lists.jboss.org
Thu Mar 21 20:42:41 EDT 2013


     [ https://issues.jboss.org/browse/JBIDE-13778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Azarov updated JBIDE-13778:
----------------------------------

    Description: 
We need to have palette elements descriptions and we need to show them in tooltips.

1. JS/CSS

Add references to *jQuery*, *jQuery Mobile* JS and CSS to <head>

2. Page

*Page:*
<div data-role="page">
...
</div>

3. Dialog

*Dialog:*
<div data-role="dialog">
...
</div>

4. Popup

*Popup:*
<a href="#popupBasic" data-rel="popup">...&lt;/a>
<div data-role="popup" id="popupBasic">
...
</div>

5. Grid

*Grid:*
<div class="ui-grid-b">
...
</div>

6. Field Container

*Field Container:*
<div data-role="fieldcontain">
...
</div>

7. Panel

*Panel:*
<div data-role="panel">
...
</div>

8. Table

*Table:*
<table data-role="table"></code><br>
...
</table>

9. Collapsible

*Collapsible:*
<div data-role="collapsible">
...
</div>

10. Collapsible Set

*Collapsible Set:*
<div data-role="collapsible-set">
...
</div>

11. Header Bar

*Header Bar:*
<div data-role="header">
...
</div>

12. Footer Bar

*Footer Bar:*
<div data-role="footer">
...
</div>

13. Navbar

*Navbar:*
<div data-role="navbar">
...
</div>

14. Select

*Select menu:*
<label for="select-choice-0" class="select">...</label>
<select name="select-choice-0">
...
</select>

15. Listview

*Listview:*
<ul data-role="listview">
...
</ul>

16. Button

*Button:*
<a href="..." data-role="button">...</a>

17. Buttons

*Grouped buttons:*
<div data-role="controlgroup">
...
</div>

18. Link

*Link:*
<a href="...">...</a>

19. Toggle

*Flip toggle switch:*
<div data-role="fieldcontain">
  <label for="flip-1">...</label>
  <select name="flip-1" id="flip-1" data-role="slider">
    <option value="off">Off</option>
    <option value="on">On</option>
  </select>
</div>

20. Radio

*Radio button:*
<fieldset data-role="controlgroup">
  <legend></legend>
  <input name="radio-choice-1" id="radio-choice-1a" value="A" type="radio"/>
  <label for="radio-choice-1a">...</label>
</fieldset>

21. Checkbox

*Checkbox:*
<label>
  <input type="checkbox" name="checkbox-1"/>
  ...
</label>

22. Checkboxes

*Grouped checkboxes:*
<fieldset data-role="controlgroup">
  <legend></legend>
  <input name="checkbox-1a" id="checkbox-1a" type="checkbox"/>
  <label for="checkbox-1a">...</label>
</fieldset>

23. Slider

*Slider/Range slider:*
<label for="range-1">...&lt;/label>
<input name="range-1" data-highlight="true" type="range"/>

24. Text Input

*Text Input:*
<div data-role="fieldcontain">
  <label for="text-1">...</label>
  <input name="text-1" id="text-1" type="text"/>
</div>

  was:
We need to have palette elements descriptions and we need to show them in tooltips.

1. JS/CSS

Add references to *jQuery*, *jQuery Mobile* JS and CSS to <head>

2. Page

The *page* is the primary unit of interaction in *jQuery Mobile* and is used to group content into logical views that can be animated in and out of view with page transitions. A *HTML* document may start with a single "page" and the *AJAX* navigation system will load additional pages on demand into the *DOM* as users navigate around. Alternatively, a *HTML* document can be built with multiple "pages" inside it and the framework will transition between these local views with no need to request content from the server.

3. Dialog

Any *page* can be presented as a *modal dialog* by adding the *data-rel="dialog"* attribute to the page anchor link.

4. Popup

To create a *popup*, add the *data-role="popup"* attribute to a div with the popup contents. Then create a link with the href set to the id of the popup div, and add the attribute *data-rel="popup"* to tell the framework to open the popup when the link is tapped. A popup div has to be nested inside the same page as the link.

5. Grid

*Grids* are 100% width, completely invisible (no borders or backgrounds) and don't have padding or margins, so they shouldn't interfere with the styles of elements placed inside them. Within the grid container, child elements are assigned ui-block-a/b/c/d/e in a sequential manner which makes each "block" element float side-by-side, forming the grid.

6. Field Container

To improve the styling of labels and form elements on wider screens, wrap a div or fieldset with the *data-role="fieldcontain"* attribute around each label/form element.

7. Panel

Flexible by design, *panels* can be used for navigation, forms, inspectors and more.

8. Table

The *reflow table* mode works by collapsing the table columns into a stacked presentation that looks like blocks of label/data pairs for each row.

9. Collapsible

*Collapsibles* are simple widgets that allow you to expand or collapse content when tapped and are useful in mobile to provide a compact presentation of content.

10. Collapsible Set

*Collapsible sets* start with the exact same markup as individual *collapsibles*. By adding a parent wrapper with a *data-role="collapsible-set"* attribute around a number of *collapsibles*, the framework will style these to looks like a visually grouped widget and make it behave like an accordion so only one section can be open at a time.

11. Header Bar

The *header* is a toolbar at the top of the page that usually contains the page title text and optional buttons positioned to the left and/or right of the title for navigation or actions.

12. Footer Bar

The *footer* is a toolbar at the bottom of the page that can contain a wide range of content, from for elements to *navbars*.

13. Navbar

*Navbar* widget is useful for providing up to 5 buttons with optional icons in a bar.

14. Select

The *select menu* is based on a native select element, which is hidden from view and replaced with a custom-styled select button. Tapping it opens the native menu.

15. Listview

A *listview* is coded as a simple *unordered list (ul)* or *ordered list (ol)* with a *data-role="listview"* attribute and has a wide range of features.

16. Button

*Buttons* are core widgets in *jQuery Mobile* and are used within a wide range of other plugins. The *button* markup is flexible and can be created from links or form buttons.

17. Buttons

*Controlgroups* are used to visually group a set of buttons to form a single block that looks contained like a navigation component.

18. Link

You can *link* pages and assets as you normally would, and *jQuery Mobile* will automatically handle *page* requests in a single-page model, using *AJAX* when possible. When *AJAX* isn't possible (such as a non-same-domain url, or if specified using certain attributes on the link), a normal http request is used instead.

19. Toggle

*Flip switches* are used for boolean style inputs like true/false or on/off in a compact UI element.

20. Radio

*Radio buttons* are used to provide a list of options where only a single option can be selected.

21. Checkbox

*Checkboxes* are used to provide a list of options where more than one can be selected.

22. Checkboxes

To improve the styling of labels and form elements on wider screens, wrap a div or fieldset with the *data-role="fieldcontain"* attribute around each label/form element.

23. Slider

*Sliders* are used to enter numeric values along a continuum and can also be dual *handle range sliders* or *flip switches*.

24. Text Input

*Text inputs* and *textareas* are coded with standard HTML elements, then enhanced by *jQuery Mobile* to make them more attractive and useable on a mobile device.


    
> Descriptions for jQuery Widget Palette elements
> -----------------------------------------------
>
>                 Key: JBIDE-13778
>                 URL: https://issues.jboss.org/browse/JBIDE-13778
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: jsp/jsf/xml/html source editing
>            Reporter: Daniel Azarov
>            Assignee: Daniel Azarov
>             Fix For: 4.1.0.Alpha2
>
>
> We need to have palette elements descriptions and we need to show them in tooltips.
> 1. JS/CSS
> Add references to *jQuery*, *jQuery Mobile* JS and CSS to <head>
> 2. Page
> *Page:*
> <div data-role="page">
> ...
> </div>
> 3. Dialog
> *Dialog:*
> <div data-role="dialog">
> ...
> </div>
> 4. Popup
> *Popup:*
> <a href="#popupBasic" data-rel="popup">...&lt;/a>
> <div data-role="popup" id="popupBasic">
> ...
> </div>
> 5. Grid
> *Grid:*
> <div class="ui-grid-b">
> ...
> </div>
> 6. Field Container
> *Field Container:*
> <div data-role="fieldcontain">
> ...
> </div>
> 7. Panel
> *Panel:*
> <div data-role="panel">
> ...
> </div>
> 8. Table
> *Table:*
> <table data-role="table"></code><br>
> ...
> </table>
> 9. Collapsible
> *Collapsible:*
> <div data-role="collapsible">
> ...
> </div>
> 10. Collapsible Set
> *Collapsible Set:*
> <div data-role="collapsible-set">
> ...
> </div>
> 11. Header Bar
> *Header Bar:*
> <div data-role="header">
> ...
> </div>
> 12. Footer Bar
> *Footer Bar:*
> <div data-role="footer">
> ...
> </div>
> 13. Navbar
> *Navbar:*
> <div data-role="navbar">
> ...
> </div>
> 14. Select
> *Select menu:*
> <label for="select-choice-0" class="select">...</label>
> <select name="select-choice-0">
> ...
> </select>
> 15. Listview
> *Listview:*
> <ul data-role="listview">
> ...
> </ul>
> 16. Button
> *Button:*
> <a href="..." data-role="button">...</a>
> 17. Buttons
> *Grouped buttons:*
> <div data-role="controlgroup">
> ...
> </div>
> 18. Link
> *Link:*
> <a href="...">...</a>
> 19. Toggle
> *Flip toggle switch:*
> <div data-role="fieldcontain">
>   <label for="flip-1">...</label>
>   <select name="flip-1" id="flip-1" data-role="slider">
>     <option value="off">Off</option>
>     <option value="on">On</option>
>   </select>
> </div>
> 20. Radio
> *Radio button:*
> <fieldset data-role="controlgroup">
>   <legend></legend>
>   <input name="radio-choice-1" id="radio-choice-1a" value="A" type="radio"/>
>   <label for="radio-choice-1a">...</label>
> </fieldset>
> 21. Checkbox
> *Checkbox:*
> <label>
>   <input type="checkbox" name="checkbox-1"/>
>   ...
> </label>
> 22. Checkboxes
> *Grouped checkboxes:*
> <fieldset data-role="controlgroup">
>   <legend></legend>
>   <input name="checkbox-1a" id="checkbox-1a" type="checkbox"/>
>   <label for="checkbox-1a">...</label>
> </fieldset>
> 23. Slider
> *Slider/Range slider:*
> <label for="range-1">...&lt;/label>
> <input name="range-1" data-highlight="true" type="range"/>
> 24. Text Input
> *Text Input:*
> <div data-role="fieldcontain">
>   <label for="text-1">...</label>
>   <input name="text-1" id="text-1" type="text"/>
> </div>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list