TourIAm/TIAMSharedUI/Pages/Components/TiamDXTextBox.cs

31 lines
707 B
C#

using DevExpress.Blazor;
using Microsoft.AspNetCore.Components;
using System.Linq.Expressions;
namespace TIAMSharedUI.Pages.Components
{
public class TiamDXTextBox : DxTextBox
{
protected override void OnInitialized()
{
base.OnInitialized();
this.CssClass = "dx-textbox tiam-textbox";
}
//need a textexpression that works with double? and string
[Parameter]
public new Expression<Func<string>> TextExpression {
get
{
return Model.TextExpression;
}
set
{
Model.TextExpression = value;
}
}
}
}