The AppGini Blog
A few tips and tricks to make your coding life a tiny bit better.

Hiding the nicedit component from a page

AppGini uses nicedit Javascript component for displaying rich text areas, where users can enter formatted input. You might wish to hide/show the rich editor in an AppGini page, or in one of your custom pages. This can be done using JavaScript code.

To hide nicedit components in a page:

1
2
3
4
$j(function() {
   $j('.nicEdit-panelContain').parent().addClass('hidden');
   $j('.nicEdit-main').parent().addClass('hidden');
})

To show nicedit components:

1
2
3
4
$j(function() {
   $j('.nicEdit-panelContain').parent().removeClass('hidden');
   $j('.nicEdit-main').parent().removeClass('hidden');
})