/** * Detach from the DOM all matched elements filtered by the <code>filter</code>.. This method is * the same than {@link #remove(String)} method except all data and event handlers are not remove * from the element. This method is useful when removed elements are to be reinserted into the DOM * at a later time. */ public GQuery detach(String filter) { return remove(filter, false); }
protected void release() { if (updateEventHandlerRegistration != null) { updateEventHandlerRegistration.removeHandler(); updateEventHandlerRegistration = null; } // empty the searchResult to speed up the container.remove() if (searchResults != null) { searchResults.html(""); } // remove method clean listener and cie container.remove(); $selectElement.removeClass(css.chznDone(), "chzn-done").show(); }
/** * Removes all matched elements from the DOM. */ public GQuery remove() { return remove(null, true); }
/** * Detach all matched elements from the DOM. This method is the same than {@link #remove()} method * except all data and event handlers are not remove from the element. This method is useful when * removed elements are to be reinserted into the DOM at a later time. */ public GQuery detach() { return remove(null, false); }
/** * Removes from the DOM all matched elements filtered by the <code>filter</code>. */ public GQuery remove(String filter) { return remove(filter, true); }
protected void resultsResetCleanup() { if (selectedItem != null) { selectedItem.find("abbr").remove(); } }
protected void resultsResetCleanup() { if (selectedItem != null) { selectedItem.find("abbr").remove(); } }
/** * Remove the optgroup (and the children options) by id. * To set an id to an optgroup, use {@link #insertGroup(String, String, int)} or {@link #addGroup(String, String)} * @param id */ public void removeGroupById(String id){ $("#"+id, getElement()).remove(); update(); }
/** * Remove all optgroup (and the children options) with a label matching <code>label</code> argument * @param label */ public void removeGroupByLabel(String label){ $(OPTGROUP_TAG + "[label='" + label + "']", getElement()).remove(); update(); }
/** * Remove all optgroup (and the children options) with a label matching <code>label</code> argument. */ public void removeGroupByLabel(String label) { $(OPTGROUP_TAG + "[label='" + label + "']", getElement()).remove(); update(); }
/** * Remove all optgroup (and the children options) with a label matching <code>label</code> argument. */ public void removeGroupByLabel(String label) { $(OPTGROUP_TAG + "[label='" + label + "']", getElement()).remove(); update(); }
/** * Remove the optgroup (and the children options) by id. * To set an id to an optgroup, use {@link #insertGroup(String, String, int)} or {@link #addGroup(String, String)} * * @param id the id of the group to remove */ public void removeGroupById(String id) { $("#" + id, getElement()).remove(); update(); }
/** * Remove the optgroup (and the children options) by id. * To set an id to an optgroup, use {@link #insertGroup(String, String, int)} or {@link #addGroup(String, String)} * * @param id the id of the group to remove */ public void removeGroupById(String id) { $("#" + id, getElement()).remove(); update(); }
public void removeGroup(int index) { $(OPTGROUP_TAG, getElement()).eq(index).remove(); update(); }
public void removeGroup(int index){ $(OPTGROUP_TAG, getElement()).eq(index).remove(); update(); }
private void choiceDestroy(GQuery link) { choices--; showSearchFieldDefault(); if (isMultiple && choices > 0 && searchField.val() != null && searchField.val().length() < 1) { resultsHide(); } resultDeselect(Integer.parseInt(link.attr("rel"))); link.parents("li").first().remove(); }
@Override protected void resultsBuild(boolean init, String defaultText, boolean customFilter) { if (choices > 0) { getSearchChoices().find("li." + getCss().searchChoice()).remove(); choices = 0; } super.resultsBuild(init, defaultText, customFilter); }
@Override protected void resultsBuild(boolean init, String defaultText, boolean customFilter) { if (choices > 0) { getSearchChoices().find("li." + getCss().searchChoice()).remove(); choices = 0; } super.resultsBuild(init, defaultText, customFilter); }
protected void choiceDestroy(GQuery link) { choices--; showSearchFieldDefault(defaultText); if (isMultiple() && choices > 0 && searchField.val() != null && searchField.val().length() < 1) { resultsHide(); } resultDeselect(Integer.parseInt(link.attr("rel")), link.attr("data-chosen-value")); link.parents("li").first().remove(); }
protected void choiceDestroy(GQuery link) { choices--; showSearchFieldDefault(defaultText); if (isMultiple() && choices > 0 && searchField.val() != null && searchField.val().length() < 1) { resultsHide(); } resultDeselect(Integer.parseInt(link.attr("rel")), link.attr("data-chosen-value")); link.parents("li").first().remove(); }