public RemoteValueChangeByEntryFormView( IReadWriteValueView <HTMLElement, ViewT> input, TextType inputType = TextType.TreatAsText) { Input = input; Message = new LabellessReadOnlyView("div", inputType); Confirm = new InputTypeButtonActionView(I18n.Translate("OK")) .With(x => x.MarkAsFormsDefaultButton()); }
public InformationalMessageFormView( TextType inputType = TextType.TreatAsText, string customOkLabel = null, Func <LabelDescr, IActionView <HTMLElement> > customActionBuilder = null) { Message = new LabellessReadOnlyView("div", inputType); Confirm = (customActionBuilder ?? Toolkit.DefaultActionBuilder) .Invoke(new LabelDescr { Label = customOkLabel ?? I18n.Translate("OK") }) .With(x => x.MarkAsFormsDefaultButton()); }
public ConfirmMessageFormView( TextType inputType = TextType.TreatAsText, ConfirmLabels type = ConfirmLabels.ConfirmCancel, Func <LabelDescr, IActionView <HTMLElement> > customActionBuilder = null) { LabelsType = type; Message = new LabellessReadOnlyView("div", inputType); Confirm = (customActionBuilder ?? Toolkit.DefaultActionBuilder) .Invoke(new LabelDescr { Label = LabelsType.GetConfirmLabel() }) .With(x => x.MarkAsFormsDefaultButton()); Cancel = (customActionBuilder ?? Toolkit.DefaultActionBuilder) .Invoke(new LabelDescr { Label = LabelsType.GetCancelLabel() }); }
public ConfirmOperationFormView(TextType inputType = TextType.TreatAsText) { Message = new LabellessReadOnlyView("div", inputType); Confirm = new InputTypeButtonActionView(I18n.Translate("Confirm")) .With(x => x.MarkAsFormsDefaultButton()); }
public TextInputFormView(TextType inputType = TextType.TreatAsText) { Label = new LabellessReadOnlyView("div", inputType); Confirm = new InputTypeButtonActionView(I18n.Translate("OK")) .With(x => x.MarkAsFormsDefaultButton()); }