Example #1
0
        public void AddDefaultValue(String value)
        {
            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            MultiInputField defaultField = (MultiInputField)base.defaultValueField;

            defaultField.AddValue(value);
        }
Example #2
0
        public void SetDefaultValues(List <String> values)
        {
            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            MultiInputField defaultField = (MultiInputField)base.defaultValueField;

            if (defaultField.GetValues() != null && defaultField.GetValues().Count > 0)
            {
                defaultField.GetValues().Clear();
            }
            foreach (String v in values)
            {
                defaultField.AddValue(v);
            }
        }