vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

editableConfig.editableTagsInput.inputTpl added #588

Closed aecepoglu closed 6 years ago

aecepoglu commented 7 years ago

added module.constant('editableConfig'. Can use other libraries for ngTagsInput.

aecepoglu commented 7 years ago

With these changes other tags input libraries can be used with xeditable.

myApp.config(function(editableConfig) {
    editableConfig.editableTagsInput.inputTpl = "<chips>...</chips>";
})

And then use editable-generic-tags-input instead of editable-tags-input

<div editable-generic-tags-input="myTags"></div>

That's all.

I believe this approach can also be used to make other views more extensible.

eugef commented 7 years ago

@aecepoglu please include only src folder in your PR

ckosloski commented 7 years ago

Hi @aecepoglu, thanks for the pull request. A couple of things need to be changed.

aecepoglu commented 7 years ago

I assumed because they weren't .gitignore'd they were wanted.

Anyway, I'm going to need to extend the mixin props(items in docs/jade/reference.json because my items are objects and this mixin doesn't seem to handle them.

What would you like the output table to look like?

So this is what I'm trying to document:

editableGenericTagsInput: { inputTpl: "..." }

And the mixin outputs table of this form:

Name | Type | Description

So will this suffice?

editableGenericTagsInput | Object | An object of the form `{inputTpl: "...", otherAttributesMaybe: "..."}`.
                                  | *inputTpl: the html template to use for the tags input directive
ckosloski commented 7 years ago

For documentation you could just add a new folder to the "docs" folder and model it after an existing documented item. Put the documentation in the desc.md file, an example in the controller.js/view.html file and a test in test.js file. Then update structure.js to add your documentation, maybe in the "Techniques" section.

ckosloski commented 7 years ago

@aecepoglu can you update your pull request?

ckosloski commented 7 years ago

@aecepoglu can you update your pull request?

ckosloski commented 6 years ago

@aecepoglu do you need any help getting this pr updated?

aecepoglu commented 6 years ago

Oh no no, I just can't find the time or motivation to do it; and I feel nobody is interested in the feature anyway. If you or someone else would like it added, I can make an effort. Otherwise we can close this.

ckosloski commented 6 years ago

Yeah, this has been here for a while and no one has commented that they wanted it. I am fine with you closing it.