We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Custom command selection

Hi

In sample codes exists one section for Custom Command
as:

methods: {
    onClick: function(args) {
    let rowIndex: number = (closest(args.target as Element, '.e-row')).rowIndex;
    let data: Object = this.$refs.treegrid.ej2Instances.getCurrentViewRecords();
    alert(JSON.stringify(data[rowIndex]));
    }

How I get the same functionallity without using typescript?

1 Reply

PK Padmavathy Kamalanathan Syncfusion Team January 9, 2020 12:34 PM UTC

Hi Jose,

Thanks for contacting Syncfusion Forums.

QUERY: How i get same functionality without using typescript?

Vue by default have type declaration and so we are using typescript with Vue. We are unable to understand your query clearly. Please explain us in detail about your query and let us know about your requirement so that we could proceed further in achieving your requirement.

If you have further queries, please get back to us.

Regards,
Padmavathy Kamalanathan


Loader.
Up arrow icon