コード例 #1
0
        /// <summary>
        /// Create a VisualElement for this port's inline editor based on the field data type.
        ///
        /// This returns null if the port is not marked as <c>isEditable</c> or the type
        /// could not be resolved to a supported control element.
        /// </summary>
        public VisualElement GetControlElement(NodeView view)
        {
            if (!HasControlElement)
            {
                return(null);
            }

            return(ControlElementFactory.CreateControl(Field, view));
        }
コード例 #2
0
 /// <summary>
 /// Create a VisualElement for this editable field's inline editor based on the field data type.
 ///
 /// This returns null if the type could not be resolved to a supported control element.
 /// </summary>
 public VisualElement GetControlElement(NodeView view)
 {
     return(ControlElementFactory.CreateControl(Field, view, Name));
 }