Jump to content


View Text in GC


  • Please log in to reply
8 replies to this topic

#1 Robert

Robert

    Advanced Member

  • Members
  • PipPipPip
  • 220 posts

Posted 21 October 2013 - 02: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



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

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



#3 Robert

Robert

    Advanced Member

  • Members
  • PipPipPip
  • 220 posts

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 ".



#4 Robert

Robert

    Advanced Member

  • Members
  • PipPipPip
  • 220 posts

Posted 25 October 2013 - 01:10 PM

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



#5 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 28 October 2013 - 09:05 AM

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



#6 archerwisdom

archerwisdom

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts

Posted 29 November 2013 - 01:45 PM

Hi Robert,

 

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



#7 archerwisdom

archerwisdom

    Advanced Member

  • Members
  • PipPipPip
  • 36 posts

Posted 29 November 2013 - 03: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 ?



#8 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 29 November 2013 - 08:38 PM

Hi archerwisdom

 

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



#9 luismiguells

luismiguells

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 18 September 2018 - 05:15 PM

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

Could you please share your solution?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users