Instead of node and nodes displayed in validation messages it can be made configurable with the following new properties within kartik\tree\TreeView widget:
nodeTitle - defaults to Yii::t('kvtree', 'node')
nodeTitle - defaults to Yii::t('kvtree', 'nodes')
The above can be overridden to display user friendly messages for your tree data. For example setting nodeTitle to product can display the following message on saving a node record.
Instead of
node
andnodes
displayed in validation messages it can be made configurable with the following new properties withinkartik\tree\TreeView
widget:nodeTitle
- defaults toYii::t('kvtree', 'node')
nodeTitle
- defaults toYii::t('kvtree', 'nodes')
The above can be overridden to display user friendly messages for your tree data. For example setting
nodeTitle
toproduct
can display the following message on saving a node record.