getHookProperty: Get hook property

Description Usage Arguments Value

View source: R/jseval_and_hooks.R

Description

Chakra hooks are JavaScript objects; this function allows to get a property (key) of a hook. See useDisclosure for an example.

Usage

1
getHookProperty(hook, property)

Arguments

hook

the name of the hook, usually created in the states list of the withStates function

property

the hook property you want to get

Value

A list like the return value of jseval.


shinyChakraUI documentation built on Jan. 5, 2022, 5:08 p.m.