0

I'm trying to convert a javascript library (handsontable) to an angular-dart directive. I know how to call a method on a javascript object:

context.callMethod(r'$', ['#example'])
.callMethod('handsontable', [new JsObject.jsify(options)]);

but don't know how to call 'handsontable' on the element of the directive. The class looks like this for example:

class Spreadsheet {
  dom.Element element;

  Spreadsheet(this.element) {
   }
}

and I want to apply 'handsontable' on the element.

1 Answer 1

1

jQuery can accept an element as parameter. So the following should work :

context.callMethod(r'$', [element])
    .callMethod('handsontable', [new JsObject.jsify(options)]);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.