as scroll through display more data in react app code example
Example 1: how to implement read more and readless in angular
showShortDesciption = true
alterDescriptionText() {
this.showShortDesciption = !this.showShortDesciption
}
Example 2: how to implement read more and readless in angular
<div [ngClass]="{'show-less': showShortDesciption}">
<!-- Your Text Here -->
</div
Example 3: how to implement read more and readless in angular
<button type="button" (click)="alterDescriptionText()">
{ showShortDesciption ? 'SHOW ALL': 'SHOW LESS' }}
</button>
Example 4: how to start grid from where the data starts in c# charts
chart1.ChartAreas[0].AxisX.IsMarginVisible = false;
Example 5: To call any action method from the view on button click in mvc
BY LOVE
Here, Action name=Edit, ControllerName=Home.
@using (Html.BeginForm("Edit", "Home", new { Id = emp.Id }, FormMethod.Get))
{
<button>EDIT</button>
}
@using (Html.BeginForm("Delete", "Home", new { Id = emp.Id }, FormMethod.Post))
{
<button>DELETE</button>
}