Beispiel #1
0
        /// <summary>
        /// Appends the content from a <see cref="PartialViewResult"/> to the elements
        /// matching a jQuery selector.
        /// </summary>
        public IAppendCommandToTargetSyntax AppendContent(PartialViewResult partialViewResult)
        {
            if (partialViewResult == null)
            {
                throw new ArgumentNullException("partialViewResult");
            }

            var commandBuilder = new AppendCommandBuilder(this);

            commandBuilder.SetContent(partialViewResult);
            return(commandBuilder);
        }
Beispiel #2
0
        /// <summary>
        /// Appends HTML content to the elements matching a jQuery selector.
        /// </summary>
        public IAppendCommandToTargetSyntax AppendContent(string html)
        {
            if (html == null)
            {
                throw new ArgumentNullException("html");
            }

            var commandBuilder = new AppendCommandBuilder(this);

            commandBuilder.SetContent(html);
            return(commandBuilder);
        }