예제 #1
0
        /// <summary>
        /// Sets the dropzone attr.
        /// </summary>
        /// <param name="dropZone">The dropZone.</param>
        /// <returns>
        /// The VTag instance
        /// </returns>
        public VTag SetDropZoneAttr(DropZone dropZone)
        {
            if (!string.IsNullOrWhiteSpace(dropZone.ToString()))
            {
                return this.AddAttribute(WellKnownXNames.DropZone, dropZone.ToString());
            }

            return this.RemoveAttribute(WellKnownXNames.DropZone);
        }