Learn R Programming

golem (version 0.0.1.5005)

js: Add JS code Straight to your app (instead of a dependency)

Description

This function can be used in your UI to insert directly the JavaScript functions contained in golem.

Usage

js()

Arguments

Value

A script

Details

These functions are meant to be used with `session$sendCustomMessage` from the server side.

show

Show an element with the jQuery selector provided.

hide

Hide an element with the jQuery selector provided.

showid

Show an element with the id provided.

hideid

Hide an element with the id provided.

showclass

Same as showid, but with class.

hideclass

Same as hideid, but with class.

showhref

Same as showid, but with `a[href*=`

hidehref

Same as hideid, but with `a[href*=`

clickon

Click on an element. The full jQuery selector has to be used.

disable

Add "disabled" to an element. The full jQuery selector has to be used.

reable

Remove "disabled" from an element. The full jQuery selector has to be used.