⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

View Text in GC



Robert
  • profile picture
  • Member

Posted 21 October 2013 - 14:17 PM

I wanted to ask if is possible for the column of a text field to see all the text in a small windows when you move the mouse over it and how can i implement that.

 

 

Thanks


Amit Shah
  • profile picture
  • Member

Posted 22 October 2013 - 10:44 AM

Hello Robert,

 

Nice question - You surely can. For that i will recommend what you do is - callback_column

there u return stuff like this -

<a href="#" title="What ever your tool tip">Whatever your content</a>

This way - u can restrict the content you want to display and also set the tool tip

 

and add a custom js - using set_js function

there - add the following script

<script>
window.onload() {
$( document ).tooltip();
}
</script>

pls do checkout the exact function available - window.onload or whatever - this should give u a nautral tooltip for the text overlay. This is all because GC also include jqueryui and JQuery UI do contain the feature of tooltip


Robert
  • profile picture
  • Member

Posted 25 October 2013 - 12:35 PM

Thanks for the replay Amith but i was looking for something else .. lets say you have a  column with text and there you add " Here is a text example with some text "

In the view GC with display only part of the text "Here is a text example ..." that is normal and good what i want to do is when you move your mouse over it to display the full text  " Here is a text example with some text ".


Robert
  • profile picture
  • Member

Posted 25 October 2013 - 13:10 PM

got a small solution callback column with $id, $obj ...


Amit Shah
  • profile picture
  • Member

Posted 28 October 2013 - 09:05 AM

cool.. great to know ..!! Happy GCing


archerwisdom
  • profile picture
  • Member

Posted 29 November 2013 - 13:45 PM

Hi Robert,

 

Mind to share your solution? I am looking for the same answer.


archerwisdom
  • profile picture
  • Member

Posted 29 November 2013 - 15:44 PM

Hello Robert,

 

Nice question - You surely can. For that i will recommend what you do is - callback_column

there u return stuff like this -

<a href="#" title="What ever your tool tip">Whatever your content</a>

This way - u can restrict the content you want to display and also set the tool tip

 

and add a custom js - using set_js function

there - add the following script

<script>
window.onload() {
$( document ).tooltip();
}
</script>

pls do checkout the exact function available - window.onload or whatever - this should give u a nautral tooltip for the text overlay. This is all because GC also include jqueryui and JQuery UI do contain the feature of tooltip

Hi Amit,

 

Is this set_js a CRUD function? or is it a CI function ?

Do I use set_js in view template ? or in controller ?


Amit Shah
  • profile picture
  • Member

Posted 29 November 2013 - 20:38 PM

Hi archerwisdom

 

set_js is a function of CRUD and is usable in controller rather then a view


luismiguells
  • profile picture
  • Member

Posted 18 September 2018 - 17:15 PM

got a small solution callback column with $id, $obj ...

Could you please share your solution?