Jump to content

Easy UIkit tooltips on inputfields


jploch
 Share

Recommended Posts

You might already know this, but I just found an easy way to have custom tooltips on inputfields:

$field = $this->modules->get('InputfieldSelect');
$field->name = "example";
$field->label = "Cool Tooltip";
$field->attr("uk-tooltip", "title: My tooltip text; pos:left; delay: 200"); // this line
$field->addOption("option1", "Option 1");
$field->addOption("option2", "Option 2");

Have a look here for all the options.

  • Like 7
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...