{"id":13436432,"url":"https://github.com/cht8687/react-listview-sticky-header","last_synced_at":"2025-03-16T15:31:03.054Z","repository":{"id":36944556,"uuid":"41252038","full_name":"cht8687/react-listview-sticky-header","owner":"cht8687","description":"react listview with sticky section header","archived":false,"fork":false,"pushed_at":"2022-12-11T02:24:21.000Z","size":3086,"stargazers_count":80,"open_issues_count":10,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-12T00:37:41.697Z","etag":null,"topics":["react","react-component","reactjs","sticky-headers"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cht8687.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-23T14:07:27.000Z","updated_at":"2024-03-01T17:31:13.000Z","dependencies_parsed_at":"2023-01-17T07:30:43.447Z","dependency_job_id":null,"html_url":"https://github.com/cht8687/react-listview-sticky-header","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cht8687%2Freact-listview-sticky-header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cht8687%2Freact-listview-sticky-header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cht8687%2Freact-listview-sticky-header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cht8687%2Freact-listview-sticky-header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cht8687","download_url":"https://codeload.github.com/cht8687/react-listview-sticky-header/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221665208,"owners_count":16860196,"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":["react","react-component","reactjs","sticky-headers"],"created_at":"2024-07-31T03:00:48.193Z","updated_at":"2024-10-27T10:49:26.539Z","avatar_url":"https://github.com/cht8687.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","UI Components","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e"],"sub_categories":["Uncategorized","Sticky"],"readme":"[![Join the chat at https://gitter.im/cht8687/react-listview-sticky-header](https://badges.gitter.im/cht8687/react-listview-sticky-header.svg)](https://gitter.im/cht8687/react-listview-sticky-header?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n\n\u003cbig\u003e\u003ch1 align=\"center\"\u003eReact listview with sticky header\u003c/h1\u003e\u003c/big\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://circleci.com/gh/cht8687/react-listview-sticky-header\"\u003e\n    \u003cimg src=\"https://circleci.com/gh/cht8687/react-listview-sticky-header.svg?style=shield\"\n         alt=\"Circle CI\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://www.npmjs.com/package/react-listview-sticky-header\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/react-listview-sticky-header.svg?style=flat-square\"\n         alt=\"NPM Version\"\u003e\n  \u003c/a\u003e\n\n \u003ca href=\"https://coveralls.io/github/cht8687/react-listview-sticky-header?branch=master\"\u003e\n    \u003cimg src=\"https://coveralls.io/repos/cht8687/react-listview-sticky-header/badge.svg?branch=master\u0026service=github\" alt=\"Coverage Status\" /\u003e\n \u003c/a\u003e\n\n  \u003ca href=\"https://travis-ci.org/cht8687/react-listview-sticky-header\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/cht8687/react-listview-sticky-header.svg?style=flat-square\"\n         alt=\"Build Status\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://npmjs.org/package/react-listview-sticky-header\"\u003e\n    \u003cimg src=\"http://img.shields.io/npm/dm/react-listview-sticky-header.svg?style=flat-square\"\n         alt=\"Downloads\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://david-dm.org/cht8687/react-listview-sticky-header.svg\"\u003e\n    \u003cimg src=\"https://david-dm.org/cht8687/react-listview-sticky-header.svg?style=flat-square\"\n         alt=\"Dependency Status\"\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://github.com/cht8687/react-listview-sticky-header/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/react-listview-sticky-header.svg?style=flat-square\"\n         alt=\"License\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cbig\u003e\n\n\u003c/big\u003e\u003c/p\u003e\n\n\n\n![React Listview sticky header](src/example/react-listview-sticky-header.gif)\n\n\n## Installation\n\n\n### npm\n\n```\n$ npm install --save react-listview-sticky-header\n```\n\nSince React is peer dependency, you need to install it manually if you haven't. \n\n\n## Demo\n\n[http://cht8687.github.io/react-listview-sticky-header/example/](http://cht8687.github.io/react-listview-sticky-header/example/)\n\n\n## Usage\n\n```js\n\u003cReactListView \n    data={data} \n    headerAttName=\"headerName\"\n    itemsAttName=\"items\" \n    styles={styles}\n/\u003e\n```\n\n## Options\n\n#### `data`: PropTypes.array.isRequired\n\n```js\nconst DATALIST = [\n{\n  headerName : \"ListA\",\n    items : [{\n      title : \"items1\"\n    }, {\n      title : \"items2\"\n    }]\n},\n{\n  headerName : \"ListB\",\n    items : [{\n      title : \"items1\"\n    }, {\n      title : \"items2\"\n    }]\n}\n];\n```\n\n#### `headerAttName`: PropTypes.string.isRequired\n\nvariable name of header in your `data` object.\nIn above example, it's `headerName`.\n\n#### `itemsAttName`: PropTypes.string.isRequired\n\nvariable name which hold items data in your `data` object.\nIn above example, it's `items`.\n\n#### `styles`: PropTypes.object.isRequired\n\n```js\nlet styles = {\n  outerDiv: {\n    height: '420px',\n    overflowY: 'auto',\n    outline: '#b9ceb6 dashed 1px',\n    width: '383px'\n  },\n\n  ul: {\n    margin: '0px',\n    listStyleType: 'none',\n    padding: '0px'\n  },\n\n  fixedPosition: {\n    position: 'fixed',\n    width: '383px',\n    top: '0px'\n  },\n\n  listHeader: {\n    width: '383px',\n    height: '27px',\n    background: '#94D6CF',\n    color: 'white'\n  },\n\n  listItems: {\n    color: '#a9adab'\n  }\n}\n```\n\n`outerDiv`, `ul`, `fixedPosition`, `listHeader`, `listItems` are required, you can modify the CSS to meet your needs.\n\n\n## Development\n\n```\n$ git clone git@github.com:cht8687/react-listview-sticky-header.git\n$ cd react-listview-sticky-header\n$ npm install\n$ webpack-dev-server\n```\n\nThen\n\n```\nopen http://localhost:8080/webpack-dev-server/\n```\n\n## License\n\nMIT\n\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcht8687%2Freact-listview-sticky-header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcht8687%2Freact-listview-sticky-header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcht8687%2Freact-listview-sticky-header/lists"}