Skip to main content
Tweeted twitter.com/#!/StackTridion/status/481890797026295808
added 23 characters in body
Source Link
Ibrar Hussain
  • 2.3k
  • 14
  • 29

weWe have the below code var itemType = $models.getItemType(selection.getItem(0)); if itemType == $const.ItemType.COMPONENT I

var itemType = $models.getItemType(selection.getItem(0));
if itemType == $const.ItemType.COMPONENT  

I want to check which schema is used for this component based, based on this iI want to enable user defined button in the ICM ribbon  .

Please share the code how to check the component based on particular schema in javascriptJavaScript.

we have below code var itemType = $models.getItemType(selection.getItem(0)); if itemType == $const.ItemType.COMPONENT I want to check which schema used for this component based on this i want to enable user defined button in the ICM ribbon  .

Please share the code how to check the component based on particular schema in javascript

We have the below code

var itemType = $models.getItemType(selection.getItem(0));
if itemType == $const.ItemType.COMPONENT  

I want to check which schema is used for this component, based on this I want to enable user defined button in the ICM ribbon.

Please share the code how to check the component based on particular schema in JavaScript.

Source Link

How to check the component based on particular schema

we have below code var itemType = $models.getItemType(selection.getItem(0)); if itemType == $const.ItemType.COMPONENT I want to check which schema used for this component based on this i want to enable user defined button in the ICM ribbon .

Please share the code how to check the component based on particular schema in javascript