Chandusangale / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
1 stars 0 forks source link

Copy TITLE attribute from OPTION into corresponding generated LABEL #248

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
** What steps will reproduce the problem?
<option title="title of option disapear" value="val">Option text</option>

** What is the expected output? What do you see instead?
<label for="ddcl-SELECTNAME-i1" class="ui-dropdownchecklist-text" 
style="cursor: default;" title="title of option disapear">Option text</label>

** What is your environment?
-- DropDownCheckList version:1.4
-- jQuery version:1.6.3
-- jQuery UI version:1.8.4
-- Browser and version:FF13

** Please provide any additional information below/Please attach 

Original issue reported on code.google.com by petan.no...@gmail.com on 14 Jun 2012 at 9:03

GoogleCodeExporter commented 9 years ago
I think you are asking for an enhancement of what is generated in the DDCL 
display element.
Please provide more details about what you are asking for.  Currently DDCL does 
nothing with <label>

Original comment by womohun...@ittrium.com on 18 Jun 2012 at 4:46

GoogleCodeExporter commented 9 years ago
example. I have defined select with titie attribute. 
<select name="selX" id="selX">
  <option title="title of option disapear" value="val">Option text</option>
  <option title="title of option disapear 2" value="val">Option text2</option>
  <option title="title of option disapear 3" value="val">Option text3</option>
</select>

then call simple
<script>
$("#selX").dropdownchecklist();
</script>

I chech html code generated by JS there disapear title attribut at all. 
This is produced: 
<label for="ddcl-selx-i1" class="ui-dropdownchecklist-text" style="cursor: 
default;">Option text</label>
<label for="ddcl-selx-i2" class="ui-dropdownchecklist-text" style="cursor: 
default;">Option text2</label>
<label for="ddcl-selx-i3" class="ui-dropdownchecklist-text" style="cursor: 
default;">Option text3</label>

but it would by perfect if there will by title attribute as I wrote
<label for="ddcl-selx-i1" class="ui-dropdownchecklist-text" style="cursor: 
default;" title="title of option disapear">Option text</label>

because when I move mouse over the option item  - tittle buuble can apper. I 
can show in the title buble e.q. full path to the item. 

Original comment by petan.no...@gmail.com on 21 Jun 2012 at 6:42

GoogleCodeExporter commented 9 years ago
Thank you for the clarification.

The enhancement you are asking for is to copy the 'title' attribute from the 
<option> into the corresponding DDCL generated <label> statement.

I will add this to the wish list.

Original comment by womohun...@ittrium.com on 21 Jun 2012 at 1:43

GoogleCodeExporter commented 9 years ago
great thans.
PN

Original comment by petan.no...@gmail.com on 21 Jun 2012 at 1:46