public static IIgniteGUIGroup AddInputFieldWithButton(this IIgniteGUIGroup group, string buttonName, Action <string> onButtonClick, Action <string> onValueChanged = null, Action <string> onEndEdit = null, string initialValue = null, string placeHolder = null, InputField.CharacterValidation characterValidation = InputField.CharacterValidation.None, bool readOnly = false, float?width = null) { var inputField = IgniteInputField.Create(onValueChanged, onEndEdit, initialValue, placeHolder, characterValidation, readOnly, width); var button = IgniteButton.Create(buttonName, () => onButtonClick(inputField.Text)); return(group.Add(IgniteHorizontalGroup.Create().Add(inputField).Add(button) as IgniteHorizontalGroup)); }
public static IIgniteGUIGroup AddButton(this IIgniteGUIGroup group, string buttonName, Action onClick) { return(group.Add(IgniteButton.Create(buttonName, onClick))); }