Пример #1
0
        /// <summary>
        /// Set the SearchPaneOptions for this field using a SearchPaneOptions instance
        /// </summary>
        /// <param name="opts">Configured SearchPaneOptions object</param>
        /// <returns>Self for chaining</returns>
        public Field SearchPaneOptions(SearchPaneOptions spOpts)
        {
            _spOpts   = spOpts;
            _spOptsFn = null;

            return(this);
        }
Пример #2
0
        /// <summary>
        /// Set a function that will retrieve a list of values that can be used
        /// for the SearchPaneOptions list in SearchPanes for this field.
        /// </summary>
        /// <param name="fn">Delegate that will return a list of SearchPane options</param>
        /// <returns>Self for chaining</returns>
        public Field SearchPaneOptions(Func <object, object, List <Dictionary <string, object> > > fn)
        {
            _spOpts   = null;
            _spOptsFn = fn;

            return(this);
        }