Introducing Syncfusion’ s New Vue In-place Editor Component for Web
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (174).NET Core  (29).NET MAUI  (207)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (215)BoldSign  (14)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (66)Flutter  (133)JavaScript  (221)Microsoft  (118)PDF  (81)Python  (1)React  (100)Streamlit  (1)Succinctly series  (131)Syncfusion  (914)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (36)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (147)Chart  (131)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (628)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (40)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (507)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (592)What's new  (332)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)

Introducing Syncfusion’s New Vue In-Place Editor Component for Web

We are excited to announce that we are including a new In-Place Editor component in the Essential JS 2 suite in the 2018 Volume 4 release. The component provides the best way to quickly edit and instantly save, which is essential for form components such as the Drop-Down List, Date Picker, and Rich Text Edit.

In this blog post, we are going to have a look at the features and uses of the In-Place Editor.

Quick edit with in-place editor

In-Place Editor as Pop-Up

What is the In-Place Editor?

The In-Place Editor is a dynamic text editor for editing values where they are displayed. It provides an easy way to edit the values of the page without redirecting to another page for editing. Users can simply see the edit view of the text by hovering and clicking on the text.

Where to use it

Here are some of common uses of the In-Place Editor component:

  • Dynamically editing a few values on a page.
  • Choosing a text value from a collection of different formats, such as in simple text, in a drop down, etc.
  • When a rich text editor with inline editing capabilities is needed.
  • Value editing without going to another page.

How does the In-Place Editor work?

Simply hovering over the editor invites the user to use it. The display text background color is highlighted with an edit icon, and a tooltip prompts the user to click the element to edit it. Once the user clicks on the text to be edited, it is transformed into an editable form containing a text field such as a string, drop-down, calendar, etc. Save and cancel buttons are also displayed. When the user edits the contents in the text field, the session will end with the save or cancel action. The edited text can then be sent to the server for saving and the form will go back to its display text state.

Inline editor and pop-up editor

The In-Place Editor can be used in either an inline or pop-up format.

Inline

With the inline format, you can edit the text in the page without separating the user from what they are going to edit. It only takes a few moments for the user to edit and then return to the display view.

Pop-up

With the pop-up format, once you click on the editable value, a small pop-up appears in which you can edit the fields. Also, you can easily position the pop-up to convenient sides of the value using built-in positions.

The following code sample shows how to initialize the In-Place Editor as an inline editor:

<ejs-inplaceeditor ref="editObj" id="inplace_editor" mode="Inline" type="Text" 
value="Andrew" > </ejs-inplaceeditor>

Inline-editing with In-place Editor

Inline Editing

Quick edit and save

You can directly manipulate the field value and save it in the server instantly with a modified value. Here, we list the workflows of the save and cancel actions:

  • Clicking the Save button triggers the save request and saves the value through an AJAX call to the database. Once the value is updated, the edited input field returns to the display view.
  • Using AJAX techniques results in an asynchronous call to the server which does not need to refresh the page.
  • Clicking the Cancel button triggers a return to the original view of the edited element without any changes.

Popup with In-place editing

In-Place Editor with Save and Cancel Buttons

Let’s see how the edited value is processed and saved to the server.

What is sent to the server?

The modified data and related primary key will be sent to the server when the edited value is submitted:

Server-request data of in-place editing

Data Sent to the Server

Server configuration for saving

In the following code, you can see how the edited data will be processed and saved in the server:

[Route("api/[controller]")]
public class EditorController : Controller
{

     [AcceptVerbs("Post")]
     [HttpPost][Route("UpdateData")]    
     public IEnumerable<SubmitModel> UpdateData([FromBody]SubmitModel value)
     {
         yield return value;
     }
     
     public class SubmitModel
     {
         public string Name { get; set; }
         public string PrimaryKey { get; set; }
         public string Value { get; set; }
     }
}

How to integrate with Drop-Down, Rich Text Edit, and Date Picker components

You can integrate the Drop-Down List, Rich Text Edit, Date Picker, and some other components with the In-Place Editor. You can choose these component options by simply setting the type property and configuring component-specific model properties.

For example, let’s see how to configure the In-Place Editor with a Drop-Down List component.

<ejs-inplaceeditor ref="dropObj" id="dropdownEle" mode="Inline" value="Canada"
type="DropDownList" :model="dropdownModel">  </ejs-inplaceeditor>


export default Vue.extend({
data: () => {
let dropdownData = ['Australia', 'Bermuda', 'Canada', 'Cameroon', 'Denmark'];
return {
multiValue: ['Canada', 'Bermuda'],
dropdownModel: {
dataSource: dropdownData,
placeholder: 'Find a countries'
}
});

By giving type the parameter value DropDownList” and setting its data source through model configuration, you can use the Drop-Down List component with in-place editing enabled. Its data source can be built either from a JSON array or fetched from an external URL given in the url parameter.

Multi-select control with In-place edit.

Date time control with In-place edit.

In-Place Editor Integrated with Drop-Down List

Customization

The In-Place Editor provides necessary customization options for providing an optimal user experience. Here are a few of them:

  • Validation: Validate user actions with HTML5 form validations.
  • Editing actions: Customize editing with events such as “click” and “double click”, and through the built-in edit icon.
  • Save and cancel actions: You can modify the save and cancel actions with ‘on blur’ to ignore, cancel, or submit the modified value.
  • Key configuration: Flexible key actions such as save on Enter, cancel on Escape, and Tab to focus.
  • Template components: Integration with template components such as HTML5, checkbox, and more.

Conclusion

We hope that you will find the In-Place Editor component user-friendly and look forward to you trying it out in the 2018 Volume 4 release. You can find the 2018 Volume 4 Essential JS 2 install download link here. Also, you can check out the In-Place Editor source on GitHub, live demos in our sample browser, and customization features in our documentation.

The Vue In-Place Editor component is also available for React, Angular, ASP.NET Core, and MVC frameworks, built from their own TypeScript libraries.

If you wish to send us feedback or would like to ask any questions, please feel free to post in the comments section below, or contact us through our support forum or Direct-Trac.

If you like this post, we think you’ll also enjoy:

Tags:

Share this post:

Comments (3)

[…] Introducing Syncfusion’s New Vue In-place Editor Component for Web (Easwari S) […]

[…] Introducing Syncfusion’s New Vue In-place Editor Component for Web (Easwari S) […]

Syncfusion provides third-party UI components for React, Vue, Angular, JavaScript, Blazor, ASP.NET Web Forms, MVC, Core, WinForms, WPF, UWP and Xamarin.

Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed