This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string _placeholder = "enter value"; | |
[Bindable(true)] | |
[Category("Appearance")] | |
[DefaultValue("enter value")] | |
[Localizable(true)] | |
public string Placeholder | |
{ | |
get | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void AddAttributesToRender(HtmlTextWriter writer) | |
{ | |
writer.AddAttribute("placeholder", _placeholder); | |
base.AddAttributesToRender(writer); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Register Assembly="HTML5WebFormsCustomControlLibrary" | |
Namespace="HTML5WebFormsCustomControlLibrary" | |
TagPrefix="kashyapa" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<kashyapa:Html5TextBox ID="txtName" | |
runat="server" | |
TextMode="SingleLine" | |
Width="300px" | |
Placeholder="enter your name"> | |
</kashyapa:Html5TextBox> | |
<kashyapa:Html5TextBox ID="txtEmailAddress" | |
runat="server" | |
Width="300px" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@( | |
Html.Kendo().Editor() | |
.Name("kEditor") | |
.HtmlAttributes(new {style="width:740px;height:440px"}) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@( | |
Html.Kendo().Editor() | |
.Name("kEditor") | |
.Tools(tools => tools | |
.SubScript() | |
.SuperScript() | |
) | |
.HtmlAttributes(new {style="width:740px;height:240px"}) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@( | |
Html.Kendo().Editor() | |
.Name("kEditor") | |
.Tools(tools => tools | |
.Clear() | |
.FontName() | |
.FontSize() | |
.FontColor() | |
.BackColor() | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@( | |
Html.Kendo().Editor() | |
.Name("kEditor") | |
.Tools(tools => tools | |
.Clear() | |
.Snippets(snippets => snippets | |
.Add("Signature","<p>Regards,<br /> Lohith G N,<br /><a href='mailto:lohith.nagaraj@telerik.com'>lohith.nagaraj@telerik.com </a></p>") | |
.Add("Kendo Online Demos"," <a href='http://demos.kendoui.com'>Kendo online demos</a> ") | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Editor Styles--> | |
.hlError | |
{ | |
background-color:#fea; | |
color:#f33; | |
} | |
.hlOK | |
{ | |
background-color:#aef; |