16 return array_merge(parent::clientConfig(),[
17 'hints' => $this->_hints,
18 'counts' => $this->counts,
19 'closeCaption' => $this->
component(
'trans')->str($this->closeCaption)
30 public function add($id,$selector,$from = 0,$limit = null,$config = null){
31 if(!$this->ignoreAll && !in_array($id,$this->ignore))
32 $this->_hints[$id] = array_merge(array_filter(compact(
'selector',
'from',
'limit')),$config ?: []);
40 public function trans($id,$count = null){
41 return $this->
component(
'trans')->id(str_replace(
'*',$id,$this->transId),($this->_hints[$id] ?? []) + [
'count' => $count]);
$closeCaption
Caption for the close button (will be translated).
$ignore
ID's of hints to ignore (do not show - anymore).
add($id, $selector, $from=0, $limit=null, $config=null)
Add a hint.
$ignoreAll
Set to true to ignore all hints.
trans($id, $count=null)
Translate a hint.
$transId
An asterisk will be replaced with the widget ID or type.
component($name)
Get a component (local or default).