{ "info": { "author": "Godefroid Chapelle", "author_email": "gotcha@jarn.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n------------\n\n`collective.js.showmore` provides a JQuery plugin.\n\nThe plugin hides a set of nodes and replaces them with a \"Show more...\" link.\nWhen the link is clicked, the hidden nodes are made visible again.\n\n\nAPI\n---\n\nThe plugin defines a new `showMore` function.\nIt requires a dictionary as parameter.\n\nThe dictionary parameter has one required value:\n\n`expression`\n The expression is a jQuery selector used to select which children nodes\n will be hidden. In case no nodes are hidden, the link is not created.\n\nThe dictionary parameter can optionally define other values:\n\n`grace_count`\n Defines how many items should not be hidden; default value is 1.\n In the default case, if there is only one item that would be\n hidden, do not hide and replace it with the link.\n\n`link_text`\n Defines the text of the more link; default value is \"Show more...\".\n\n`link_class`\n Defines the class added to the more link; default value is\n `showMoreLink`.\n\n`hidden_class`\n Defines the class set on the hidden nodes; default value is\n `showMoreHidden`.\n\n`display_less`\n Enable or disable the display of the less link; default value is \n `true`.\n\n`link_text_less`\n Defines the text of the less link; default value is \"Show fewer...\".\n\n`link_class_less`\n Defines the class added to the less link; default value is\n `showLessLink`.\n\n`visible_class`\n Defines the class set on the visible nodes; default value is\n `showMoreVisible`.\n\n\nExample\n-------\n\nThe function can be called like the following::\n\n jq(function() {\n jq('ul').showMore({expression:'li:gt(1)'});\n });\n\n`li` children nodes of all `ul`'s of the document will be hidden (except the\ntwo first `li`s of each `ul`). A \"Show more...\" link will be added at the end\nof each `ul`. `ul`'s with two or less `li`'s will remain untouched. A \"Show\nless...\" link will be displayed when you click in the \"Show more...\" link,\nso that you can alternate the hidden/visible content.\n\n\nMiscellaneous\n-------------\n\nThe Javacript code is registered as a Z3 resource::\n\n ++resource++collective.showmore.js\n\nChangelog\n=========\n\n1.0a4 - 2011-10-21\n------------------\n\n* Correct text to \"Show fewer...\". (The css class is still ``showLessLink``.)\n [elro]\n\n1.0a3 - 2010-01-18\n------------------\n\n* Added support for the \"Show less...\" feature, where a new link is\n displayed to hide the content when you click in the \"Show more...\" link.\n [deo]\n\n\n1.0a2 - 2009-04-20\n------------------\n\n* Added `grace_count` option to avoid replacing small numbers of items (i.e.\n one) with a \"Show more...\" link, effectively not saving any space.\n [gotcha]\n\n\n1.0a1 - 2009-04-08\n------------------\n\n* Initial release\n [gotcha]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/collective.js.showmore/", "keywords": "javascript ajax jquery expansion expand markup", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "collective.js.showmore", "package_url": "https://pypi.org/project/collective.js.showmore/", "platform": "Any", "project_url": "https://pypi.org/project/collective.js.showmore/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/collective.js.showmore/" }, "release_url": "https://pypi.org/project/collective.js.showmore/1.0a4/", "requires_dist": null, "requires_python": null, "summary": "JS add-on to show/hide parts of a page.", "version": "1.0a4" }, "last_serial": 787908, "releases": { "1.0a1": [ { "comment_text": "", "digests": { "md5": "b3c55e00e04dce2131036ad06503c5d3", "sha256": "3d3e80a566226ff11d1bdabb97f9c0c77f13e99657bb77e312da302121ce944e" }, "downloads": -1, "filename": "collective.js.showmore-1.0a1.zip", "has_sig": true, "md5_digest": "b3c55e00e04dce2131036ad06503c5d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54825, "upload_time": "2009-04-08T20:47:51", "url": "https://files.pythonhosted.org/packages/47/47/56d00410382c1ea6fb40f5b3ec19a9cfcd514be16c677d1f0643fbd420f5/collective.js.showmore-1.0a1.zip" } ], "1.0a2": [ { "comment_text": "", "digests": { "md5": "8239adafbfb85726ec62933856ae0458", "sha256": "0627c8a2378f4382129ce19c3c4e9caafb6f30f7655ea09849610edc7504a4c6" }, "downloads": -1, "filename": "collective.js.showmore-1.0a2.zip", "has_sig": true, "md5_digest": "8239adafbfb85726ec62933856ae0458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55474, "upload_time": "2009-04-20T17:52:22", "url": "https://files.pythonhosted.org/packages/37/e4/9ffe5c6c342fadccc350956df220735e4caf45386b56246d607dd42c07d7/collective.js.showmore-1.0a2.zip" } ], "1.0a3": [ { "comment_text": "", "digests": { "md5": "df871be5027da64bbc72948db6353261", "sha256": "061e7c110263aecc3385199d3273dcd9a006a0fc736ba1bd1e9da2bdd98110c8" }, "downloads": -1, "filename": "collective.js.showmore-1.0a3.tar.gz", "has_sig": false, "md5_digest": "df871be5027da64bbc72948db6353261", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48679, "upload_time": "2010-01-20T02:31:14", "url": "https://files.pythonhosted.org/packages/39/6d/ddf7d4dfdbdf2302a9fd437de09729f2a4fa83ecf81a2f1ba6044b025e6a/collective.js.showmore-1.0a3.tar.gz" } ], "1.0a4": [ { "comment_text": "", "digests": { "md5": "c484b869593b4d2482d65ffcbcf99fb0", "sha256": "8d890d7c004f6bc84407f817a4df6586385c85b43d597d0ceb925a1ef738ff83" }, "downloads": -1, "filename": "collective.js.showmore-1.0a4.zip", "has_sig": false, "md5_digest": "c484b869593b4d2482d65ffcbcf99fb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 56556, "upload_time": "2011-10-21T19:20:16", "url": "https://files.pythonhosted.org/packages/5c/3b/f3ef5156c281ffd9b8432c1fd9d593cf4902185ca7baa5d209d8c922c16f/collective.js.showmore-1.0a4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c484b869593b4d2482d65ffcbcf99fb0", "sha256": "8d890d7c004f6bc84407f817a4df6586385c85b43d597d0ceb925a1ef738ff83" }, "downloads": -1, "filename": "collective.js.showmore-1.0a4.zip", "has_sig": false, "md5_digest": "c484b869593b4d2482d65ffcbcf99fb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 56556, "upload_time": "2011-10-21T19:20:16", "url": "https://files.pythonhosted.org/packages/5c/3b/f3ef5156c281ffd9b8432c1fd9d593cf4902185ca7baa5d209d8c922c16f/collective.js.showmore-1.0a4.zip" } ] }