KaxSpellClientTextSource Property |
Gets or sets the class of the client side text source object.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic string ClientTextSource { get; set; }
Public Property ClientTextSource As String
Get
Set
public:
property String^ ClientTextSource {
String^ get ();
void set (String^ value);
}
member ClientTextSource : string with get, set
Property Value
Type:
String
A
string containing the name of the JavaScript class. The
default is
HtmlElementTextSource -- a built in implementation that obtains the
source from a HTML element.
Remarks
The text source is a JavaScript object. It has to provide two methods: GetText() and SetText(newValue).
ExamplesDifferent controls text source
<script type="text/javascript">
function DifferentControlsSource()
{
this.GetText = function()
{
return document.getElementById('before').value;
}
this.SetText = function(newValue)
{
document.getElementById('after').value = newValue;
}
}
</script>
See Also