{"id":19118509,"url":"https://github.com/zalari/angular-bootstrap-sortbutton","last_synced_at":"2026-06-20T22:31:02.760Z","repository":{"id":24274203,"uuid":"27668597","full_name":"zalari/angular-bootstrap-sortbutton","owner":"zalari","description":"SortButton directive, based on angular 1.x+ and bootstrap 3.x+","archived":false,"fork":false,"pushed_at":"2015-01-13T08:58:13.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-03T08:01:52.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zalari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-07T11:55:20.000Z","updated_at":"2015-01-13T08:58:13.000Z","dependencies_parsed_at":"2022-07-25T13:52:11.271Z","dependency_job_id":null,"html_url":"https://github.com/zalari/angular-bootstrap-sortbutton","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fangular-bootstrap-sortbutton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fangular-bootstrap-sortbutton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fangular-bootstrap-sortbutton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Fangular-bootstrap-sortbutton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zalari","download_url":"https://codeload.github.com/zalari/angular-bootstrap-sortbutton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240171746,"owners_count":19759415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T05:06:40.030Z","updated_at":"2026-06-03T09:30:17.708Z","avatar_url":"https://github.com/zalari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-bootstrap-sortbutton\n============================\n\nSortButton directive, based on angular 1.x+ and bootstrap 3.x+\n\n### Using\n\nThe directive can be used with its name or as an attribute:\n\n```\n\u003cza-sort-button za-sort-type=\"alpha\" \n za-sort-order-ascending=\"true\"\n za-sort-event=\"sortEvent(isAscending)\" \n za-btn-class=\"btn btn-default btn-xs\"\u003e\n \u003c/za-sort-button\u003e\n```\n\n### Options\n\nThe attributes are as following:\n\n* *za-sort-type* can either be **alpha**, **numeric** or empty to display the corresponding sort glyphicon\n* *za-sort-order-ascending* determines the initial sort order; when it is true, *ascending* order is assumed; **must be present** for the time being\n* *za-sort-event* can be a scope function that gets called, whenever the sorter has been clicked, and passed with the current sortOrder; *optional*\n* *za-btn-class* is a list of preferrably bootstrap classes that can be used for additional styling (e.g. small buttons); the default value is *btn btn-default*\n\n### Notes\n\n - has not been extensively tested with older bootstrap releases; but as along as the glyphicons are present, it should work. The same applies to older Angular releases; it should work with Angular 1.0.x as well - keep your fingers crossed.\n \n - as the directive is using the bootstrap-glyphicons (and classes), some recent 3+ version of bootstraps needs to be loaded for the styling; apart from that no additional JS is needed (i.e. no bootstrap JS).\n\n### TODO\n\n* update build process for minifying angular-js directive... ; uglify does not work. PRs are welcome...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalari%2Fangular-bootstrap-sortbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzalari%2Fangular-bootstrap-sortbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalari%2Fangular-bootstrap-sortbutton/lists"}