qTip Integration – One Column Only

QuestionsqTip Integration – One Column Only
Darryl Brady asked 7 years ago

OK so I have qTip working but its showing in every Column and I only want it to show in one. What are the valid jQuery selectors and how do I limit them… http://qtip2.com/guides lists

('[title]').qtip();

can be

('[title!=""]').qtip();

so i have tried

('[title!="Surname"]').qtip();

without luck…

my current code is….

function connect_qtip()
{
jQuery('[title]').qtip({
position: {
my: 'bottom left', // Position my top left…
at: 'top left' // at the bottom right of…
}
});
jQuery('[title]').qtip({
content: {
text: 'Surname must be ALL CAPS.'
}
});
}

Regards
Darryl

4 Answers
Abu Ghufran answered 7 years ago

You can use:
jQuery('[aria-describedby=list1_Surname]').qtip(…);

where list1 is grid id and Surname is column name.

Darryl Brady answered 7 years ago

Thanks Abu,

OK so it now works on the GRID but what do i do to get them on an Edit or Add window?

<script>
function connect_qtip()
{
jQuery('[aria-describedby = list1_ww1_Surname]').qtip({
content: {
text: 'ALL CAPS'
}
});
}
</script>

Regards
Darryl

Abu Ghufran answered 7 years ago

You can connect qtip for dialog in afterShowForm event

$grid["add_options"]["afterShowForm"] = 'function(formid) { ….. }';
$g->set_options($grid);

Inside function, you can inspect using firebug or debugger f12 the element class selector for qtip.

Cedric answered 5 years ago

Hi Darryl,

Could you share your code to display qtip info on one column?

Thanks,

Your Answer

12 + 4 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?