Generic context keys
All renderers support the following context keys that can be set to attach to the rendered html tag as an attribute.
Id
Sets the id attribute of the rendered html element.
context.Set(ContextKey.Id,"my-player");
Class
Sets the class attribute of the rendered html element.
context.Set(ContextKey.Class, "my-player-class");
Style
Sets the style attribute of the rendered html element.
context.Set(ContextKey.Style, "border-width:3px");
Title
Sets the title attribute of the rendered html element.
context.Set(ContextKey.Title, "My title");
data-*
Sets a data- attribute of the rendered html element.
context.Set("data-key", "value");
AccessKey
Sets the accesskey attribute of the rendered html element.
context.Set(ContextKey.AccessKey, "I");
AutoCapitalize
Sets the autocapitalize attribute of the rendered html element.
context.Set(ContextKey.AutoCapitalize,"words");
AutoFocus
Sets the autofocus attribute of the rendered html element.
context.Set(ContextKey.AutoFocus);
ContentEditable
Sets the contenteditable attribute of the rendered html element.
context.Set(ContextKey.ContentEditable, "false");
Dir
Sets the dir attribute of the rendered html element.
context.Set(ContextKey.Dir, "rtl");
Draggable
Sets the draggable attribute of the rendered html element.
context.Set(ContextKey.Draggable, "true");
EnterKeyHint
Sets the enterkeyhint attribute of the rendered html element.
context.Set(ContextKey.EnterKeyHint, "send");
Hidden
Sets the hidden attribute of the rendered html element.
context.Set(ContextKey.Hidden);
InputMode
Sets the inputmode attribute of the rendered html element.
context.Set(ContextKey.InputMode, "numeric");
Is
Sets the is attribute of the rendered html element.
context.Set(ContextKey.Is, "myElement");
Lang
Sets the lang attribute of the rendered html element.
context.Set(ContextKey.Lang, "en");
SpellCheck
Sets the spellcheck attribute of the rendered html element.
context.Set(ContextKey.SpellCheck, "false");
TabIndex
Sets the tabindex attribute of the rendered html element.
context.Set(ContextKey.TabIndex, 4);
Translate
Sets the translate attribute of the rendered html element.
context.Set(ContextKey.Translate, "no");