Jump to content

Recommended Posts

Posted

Hi

As the code below show...

<button type="button" class="btn btn-default btn-copy js-tooltip js-copy" data-toggle="tooltip" data-placement="bottom" data-copy="john.doe@email.com" title="Copy to clipboard">

And reach the client side with the proper JS code provided by a external lib. What is the best approach to send this (custom tags) code to client site ? CustomAttribs is not the place since it works at server side only.

What is the best solution to use in a regular "unigui button" ?

Thanks in advance.

PS: ignore the class code names. Referring to other fields (proper name is Custom data tags/fields) not class !

Posted

I'm aware of solutions. My question is the uniIGUI/Ext.js native best solution. See more details at:

https://stackoverflow.com/questions/2744455/is-it-a-bad-practice-to-add-extra-attributes-to-html-elements

Many JS libs does that to its controls/elements. That should work as a "CustomClientAttribs" to add to specific controls. I know that its possible with CSS in some cases but not all.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...