Show only icon in mobile view

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
Authen-TIC
Posts: 13
Joined: 2015-12-16 12:54

Show only icon in mobile view

Post by Authen-TIC » 2016-01-04 01:29

Hi,

On the mobile view, I would like to hide the text " add - filter - Show all" and show only the icon. is there a way to do that?

Thanks for your time.

User avatar
a.gneady
Site Admin
Posts: 1287
Joined: 2012-09-27 14:46
Contact:

Re: Show only icon in mobile view

Post by a.gneady » 2016-01-06 19:43

Try adding this code into hooks/footer-extras.php

Code: Select all

<script>$j(function(){
  $j('.btn-group-vertical.visible-xs.visible-sm .btn i.glyphicon').each(function(){
    var btn_text = $j(this).parent().text();
    var btn_html = $j(this).parent().html();
    $j(this).parent().html(btn_html.replace(btn_text, ''));
  });
})</script>
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Authen-TIC
Posts: 13
Joined: 2015-12-16 12:54

Re: Show only icon in mobile view

Post by Authen-TIC » 2017-01-16 20:21

Ok I have only the icon but I would like to have it only on a single line.

Post Reply