|
<SfTab>
<TabEvents Selecting="OnSelecting"></TabEvents> // Define the Tab events
<TabItems>
<TabItem>
<ChildContent>
<TabHeader Text="HTML"></TabHeader>
</ChildContent>
<ContentTemplate>
<div>HyperText Markup Language, commonly referred to as HTML, is the standard markup language used to create web pages.</div>
</ContentTemplate>
</TabItem>
<TabItem>
<ChildContent>
<TabHeader Text="Java"></TabHeader>
</ChildContent>
<ContentTemplate>
<div>Java is a set of computer software and specifications developed by Sun Microsystems, later acquired by Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment.</div>
</ContentTemplate>
</TabItem>
<TabItem>
<ChildContent>
<TabHeader Text="JavaScript"></TabHeader>
</ChildContent>
<ContentTemplate><div>JavaScript (JS) is an interpreted computer programming language. It was originally implemented as part of web browsers so that client-side scripts could interact with the user, control the browser, communicate asynchronously, and alter the document content that was displayed.</div></ContentTemplate>
</TabItem>
</TabItems>
</SfTab>
<div class="log-section">
<pre>@Output</pre>
</div>
@code{
private string Output = "";
/* Created Event */
public void OnSelecting()
{
Output = Output + "\n\n Tab selecting event start\n\n" + "\n\n Tab selecting event end\n\n"; // Triggers while selecting Tab
}
}
|
|
Note: Refer the below link to know further details of TabEvents
|
| code { StTab Tabs void somefunctuion() { Tabs.TabEvents.OnSelecting . ...... |
Is it mor clear now ?
Brice.
|
@code{
SfTab Tabs;
public void OnSelecting()
{
Tabs.Select(1); // To select Tab Item programmatically
}
} |