kendo-labs/angular-kendo

Angular-Kendo Docs?

Closed this issue · 4 comments

All of the docs included in this package are very limited and immediate send you off to the docs for non-angular versions of the components. I know how to set options for the components using jQuery, the "old" way, but how to set from inside the angular directives?

For example, with the slider, how to turn off ticks? I know how to do it in jQuery but is there a parameter in the slider definition on the page for this as there is for k-tooltip or k-orientation?

Sign! The docs really have to be improved.

If you know how to do it with jQuery, then you know how to do it with Angular. All options supported with plain jQuery are supported as attributes with Angular-Kendo, by converting the option name from camelCase to dash-separated-words, and prefixing it with k-. Also, if you need to pass a string literal value to an option you need to embed it in single-quotes, because otherwise it will be interpreted as a variable reference in $scope. All this is actually documented.

So, to hide the ticks in a slider you'd do this:

<div kendo-slider k-tick-placement="'none'"></div>
<!-- again, notice these quotes     ^    ^ -->

Thanks.

All this is actually documented.

Can you please point me to this?

@smlombardi hm, you are right. Sorry, my bad. I'm sure it was written once, but it got lost somehow. I'll update the docs to clarify the options passing.