Questions tagged [edit-in-place]

Edit-in-place is a user interface component, typically web-based, that hides input elements until an action is taken by the user (such as a mouse click).

Edit-in-place is a user interface component, typically web-based, that hides input elements until an action is taken by the user (such as a mouse click). Upon activation, the input field appears. When the input field loses focus, the input field disappears.

99 questions
143
votes
11 answers

jq to replace text directly on file (like sed -i)

I have a json file that needs to be updated on a certain condition. Sample json { "Actions" : [ { "value" : "1", "properties" : { "name" : "abc", "age" : "2", "other ": "test1" …
Supra
  • 1,453
  • 2
  • 10
  • 6
81
votes
4 answers

Rearrange columns of numpy 2D array

Is there a way to change the order of the columns in a numpy 2D array to a new and arbitrary order? For example, I have an array array([[10, 20, 30, 40, 50], [ 6, 7, 8, 9, 10]]) and I want to change it into, say array([[10, 30, 50, 40,…
5xum
  • 5,250
  • 8
  • 36
  • 56
15
votes
4 answers

Rails best_in_place gem with nested resource

Does anyone know if it is possible (and, if so, what the syntax is) for using a nested resource with the best_in_place gem? My routes.rb looks something like this resources :users do resources :goals end I would like to edit the :description…
bknoles
  • 632
  • 7
  • 16
12
votes
5 answers

Multiple TinyMCE editors, but only one toolbar?

I've looked around the forum, but cannot seem to find a definite answer to this problem... I'm using jQuery and TinyMCE on our website. I've gone through the docs of TinyMCE, but am still getting lost I'm afraid. We're doing an interface that…
littlejim84
  • 9,071
  • 15
  • 54
  • 77
10
votes
1 answer

Using yq to edit yaml files (--in-place, -i flag)

I'm having a big problem with the edit in place flag for yq version 2.12.0. We are trying to update a value for a variable in one of our .yaml scripts. The before looks like this... authentication: anonymous: enabled: false But we want…
iej94
  • 191
  • 1
  • 2
  • 8
9
votes
2 answers

How to do edit-in-place in a UITableView?

Is there a standard way to set up a table to allow editing-in-place, kind of like this: I only need editable text at the moment, but I might need UISwitches or UISliders in the future.
cannyboy
  • 24,180
  • 40
  • 146
  • 252
9
votes
4 answers

In-place editing of a subitem in a TListView

I have a ListView with 3 columns and would like to edit the third column, aka Subitem[1]. If I set ListView.ReadOnly to False, it allows me to edit the caption of the selected item. Is there an easy way to do the same thing for the subitem? I would…
Aaron
  • 896
  • 3
  • 11
  • 22
7
votes
2 answers

ActiveAdmin and in-place edit

I have this system where I use ActiveAdmin to automate the backend and I was wondering if anyone tried to use in-place editing with tables for ActiveAdmin. I see some scenarios where that would be useful: key-value tables (like State, Category,…
kolrie
  • 12,562
  • 14
  • 64
  • 98
5
votes
1 answer

Calling Editinplace jquery plugin on a function and not on click

I am using jQuery editinPlace plugin, the default way of doing edit in place is using a click event on a selector, but the way I am trying to do is through context menu which calls a function "rename();". So how do I block the inline edit on click…
Sullan
  • 1,147
  • 2
  • 22
  • 39
5
votes
1 answer

Open Microsoft Office document directly from my own iOS app for in-place editing

I want to be able to edit in-place Office files hosted on my own server. By in-place I mean to open the file in Office, edit it, and get the changes sent back to my app/server directly. I have partially achieved this by implementing a File Provider…
Rivera
  • 10,792
  • 3
  • 58
  • 102
5
votes
1 answer

JQ edit file in place after using JQ Select

to edit a json file inplace with JQ like -i in sed I have found many solutions like jq ... input.json > tmp.json && mv tmp.json input.json This works, but I need to filter on my file, add some data, and place it back in the original. (ie. Update a…
Goldfish
  • 576
  • 1
  • 7
  • 22
5
votes
1 answer

Apply x-editable for new appended td's

I have a table with fields where I can add dynamically table data via JQuery. The problem is the elements I add aren't having the properties I've set for that group of td's until I reload the entire page and I don't know what has to be triggered to…
jabez
  • 896
  • 1
  • 9
  • 22
5
votes
1 answer

Using best_in_place with rich-text editor like TinyMCE

I'm using the best_in_place gem to do in-place editing in a Rails application. However, I need (X)HTML editing on some of the text areas, so I need a rich-text editor. TinyMCE is being used elsewhere on the site. However, it's not trivial to add an…
4
votes
1 answer

Rails 3.1 in place edits: gem that works, or roll my own?

I'm using the latest RC of Rails 3.1 and I can't seem to find a gem that works for in place editing. I tried the in_place_editing gem, but I just get undefined method `in_place_edit_for' for ItemsController:Class errors. The 6 lines of doc with…
Stewart Johnson
  • 14,281
  • 7
  • 61
  • 70
4
votes
2 answers

Why are edit in place forms rendered together with the display version instead of being rendered on the fly?

Is there a specific reason that most everyone implements edit-in-place as a shown 'display' div and a hidden 'edit' div that are toggled on and off when somebody clicks on the associated 'edit' button like so?
1
2 3 4 5 6 7