agentsclimarketplace

Syncfusion aspnetmvc inline ai assist

Skill syncfusion/aspnetmvc-ui-components-skills/skills/syncfusion-aspnetmvc-inline-ai-assist

This repository contains AI Skills of ASPNET MVC UI Components.

Install
npx -y skills add syncfusion/aspnetmvc-ui-components-skills --skill syncfusion-aspnetmvc-inline-ai-assist

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

3 things to look at

  • 20 days oldThe repository was created 20 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Implement Syncfusion ASP.NET MVC Inline AI Assist control. Use when building AI-powered inline text editing, prompt-response UIs, command popups, toolbar customization, response actions, and localization in ASP.NET MVC Razor views. Triggers when user needs to integrate InlineAIAssist, configure CommandSettings, ResponseSettings, InlineToolbarSettings, EditorTemplate, ResponseTemplate, or call methods like addResponse, executePrompt, showPopup, hidePopup in ASP.NET MVC applications.

SKILL.md

7.0 KB, as published. Nobody here has run it

Syncfusion ASP.NET MVC Inline AI Assist

The Inline AI Assist control provides AI-powered text processing within ASP.NET MVC applications. It renders as a floating popup anchored to a trigger element, supporting prompt input, response display, command shortcuts, and toolbar customization.

Quick Start Example

@using Syncfusion.EJ2.InteractiveChat

<div style="height: 350px; width: 650px;">
    <button id="aiBtn" class="e-btn e-primary" onclick="onBtnClick()">AI Assist</button>

    @Html.EJS().InlineAIAssist("myAssist")
        .RelateTo("#aiBtn")
        .Created("onCreated")
        .PromptRequest("onPromptRequest")
        .ResponseSettings(new Syncfusion.EJ2.InteractiveChat.InlineAIAssistResponseSettings {
            ItemSelect = "onItemSelect"
        })
        .Render()
</div>

<script>
    var inlineAssist;

    function onCreated() { inlineAssist = this; }

    function onPromptRequest(args) {
        setTimeout(function () {
            inlineAssist.addResponse('Your AI response here.');
        }, 1000);
    }

    function onItemSelect(args) {
        if (args.command.label === 'Accept') {
            document.getElementById('content').innerHTML = inlineAssist.prompts[inlineAssist.prompts.length - 1].response;
            inlineAssist.hidePopup();
        } else if (args.command.label === 'Discard') {
            inlineAssist.hidePopup();
        }
    }

    function onBtnClick() {
        if (inlineAssist) inlineAssist.showPopup();
    }
</script>
public ActionResult Index()
{
    return View();
}

Documentation and Navigation Guide

Getting Started & Core Setup

πŸ“„ Read: references/getting-started.md

When user needs to:

  • Install NuGet package, register namespace, add CDN stylesheet/script
  • Configure RelateTo (anchor element) or Target (append container)
  • Switch between Popup and Inline response display modes
  • Set up the script manager in _Layout.cshtml

Inline Assist Configuration

πŸ“„ Read: references/inline-assist-config.md

When user needs to:

  • Set default Prompt text or pre-load Prompts collection with prior conversations
  • Customize Placeholder, PopupWidth, PopupHeight, ZIndex
  • Apply custom CSS via CssClass

Commands & Response Settings

πŸ“„ Read: references/commands-and-response.md

When user needs to:

  • Add a command popup (CommandSettings) with grouped shortcut actions
  • Configure command item properties: label, prompt, iconCss, groupBy, tooltip, disabled
  • Control command popup dimensions (PopupWidth, PopupHeight)
  • Handle ItemSelect event on command selection
  • Customize the response action popup (ResponseSettings) with built-in or custom items
  • Group response items, disable items, handle response ItemSelect

Toolbar & Templates

πŸ“„ Read: references/toolbar-and-templates.md

When user needs to:

  • Add custom items to the inline toolbar (InlineToolbarSettings)
  • Configure toolbar item properties: type, iconCss, text, align, tooltip, cssClass, disabled, visible
  • Set toolbar position (Inline or Bottom)
  • Embed a custom widget (dropdown, input) via Template (type: Input)
  • Replace the footer editor with EditorTemplate
  • Customize response display with ResponseTemplate

Methods & Events

πŸ“„ Read: references/methods-and-events.md

When user needs to:

  • Call addResponse, executePrompt programmatically
  • Show/hide the main popup: showPopup, hidePopup
  • Show/hide the command popup: showCommandPopup, hideCommandPopup
  • Handle lifecycle events: created, promptRequest, open, close
EventTrigger
CreatedComponent rendering is complete
PromptRequestUser submits a prompt (or executePrompt is called)
OpenThe popup is opened
CloseThe popup is closed

Globalization

πŸ“„ Read: references/globalization.md

When user needs to:

  • Localize UI strings (send button, stop responding, thinking indicator)
  • Enable RTL layout with EnableRtl

Key Properties at a Glance

PropertyTypePurpose
RelateTostring / HTMLElementAnchor element for popup positioning
Targetstring / HTMLElementContainer element where popup appends
ResponseModestringPopup (default) or Inline
PromptstringDefault prompt text
PromptsarrayPre-loaded prompt-response collection
PlaceholderstringTextarea placeholder (default: Ask or generate AI content..)
PopupWidthstringPopup width (default: 400px)
PopupHeightstringPopup height (default: auto)
ZIndexintPopup z-index (default: 1000)
CssClassstringCustom CSS class on popup
EnableRtlboolRight-to-left layout
LocalestringCulture code for localization
CommandSettingsobjectCommand popup configuration
ResponseSettingsobjectResponse action popup configuration
InlineToolbarSettingsobjectInline toolbar items and position
EditorTemplatestringCustom footer/editor area template
ResponseTemplatestringCustom response item template

Common Patterns

Pattern 1 β€” Connect to a Real AI Service

In onPromptRequest, call your AI endpoint and pass the result to addResponse:

function onPromptRequest(args) {
    fetch('/api/ai', {
        method: 'POST',
        body: JSON.stringify({ prompt: args.prompt }),
        headers: { 'Content-Type': 'application/json' }
    })
    .then(r => r.json())
    .then(data => inlineAssist.addResponse(data.response));
}

Pattern 2 β€” Apply Accepted Response to DOM

function onItemSelect(args) {
    if (args.command.label === 'Accept') {
        var editable = document.getElementById('editableText');
        editable.innerHTML = '<p>' + inlineAssist.prompts[inlineAssist.prompts.length - 1].response + '</p>';
        inlineAssist.hidePopup();
    } else if (args.command.label === 'Discard') {
        inlineAssist.hidePopup();
    }
}

Pattern 3 β€” Get Component Instance

Always capture this in the Created event; all method calls require this reference:

var inlineAssist;
function onCreated() { inlineAssist = this; }

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.