Title: CompoundLabel · Issue #401 · patternfly/patternfly-react · GitHub
Open Graph Title: CompoundLabel · Issue #401 · patternfly/patternfly-react
X Title: CompoundLabel · Issue #401 · patternfly/patternfly-react
Description: Implement CompoundLabel component which will be used in http://www.patternfly.org/pattern-library/forms-and-controls/filter/#overview and #351 Input props: Name Type Description onDeleteClick function Function which is called when X butt...
Open Graph Description: Implement CompoundLabel component which will be used in http://www.patternfly.org/pattern-library/forms-and-controls/filter/#overview and #351 Input props: Name Type Description onDeleteClick funct...
X Description: Implement CompoundLabel component which will be used in http://www.patternfly.org/pattern-library/forms-and-controls/filter/#overview and #351 Input props: Name Type Description onDeleteClick funct...
Opengraph URL: https://github.com/patternfly/patternfly-react/issues/401
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CompoundLabel","articleBody":"Implement `CompoundLabel` component which will be used in http://www.patternfly.org/pattern-library/forms-and-controls/filter/#overview and #351 \r\n\r\n## Input props:\r\n\r\n| Name | Type | Description |\r\n| ------------- | ------------- | ----- |\r\n| onDeleteClick | function | Function which is called when `X` button is pressed |\r\n| category | object | Object with this shape { id: any, label: string } |\r\n| values | arrayOf(Value) | Array of Objects with this shape [{ id: any, label: string }] |\r\n| Value | object | id: any, label: string |\r\n| categoryTruncate | function | Function which is used for truncating `Key` string |\r\n| valueTruncate | function | Function which is used for truncating each `Value` string |\r\n\r\n## Properties\r\n- When there are multiple `Values`, they should be alphabetically sorted.\r\n- Each element (Key or Value) has it's own tooltip with non truncated label string.\r\n- When click on `X` respectable value is deleted (NOT implemented in this component)\r\n- Default truncate function is set for 18 characters and three dots `.` so 21 characters in total max.\r\n\r\n## This is how it should look:\r\n\r\n\r\n\r\n\r\n\r\n\r\nEDIT: I forgot, that key is reserved name in React. Let's call it category instead.","author":{"url":"https://github.com/PanSpagetka","@type":"Person","name":"PanSpagetka"},"datePublished":"2018-06-18T13:32:32Z","url":"https://github.com/patternfly/patternfly-react/issues/401"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c08ed86-052e-db54-23f7-5eaaf13e3453 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96C4:3F3B2D:305C83:40D989:6B0087FF |
| html-safe-nonce | 3899a281312a5a0119bd2865d3ace7cceb32f2adfb6c9ef2a6a2d2b6b75a04de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkM0OjNGM0IyRDozMDVDODM6NDBEOTg5OjZCMDA4N0ZGIiwidmlzaXRvcl9pZCI6IjY5MjQ2NjM4Mzc2OTgzMjg1NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4b110b223e39f971e50206dd061f8f3d174bbae5510176a99064a032dcdc3bba |
| hovercard-subject-tag | issue:333271404 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/patternfly/patternfly-react/401/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f0e70228329f6606f9f3a73e3e1f79934efdc1c7a5abaa81efff6da4b4da7af/patternfly/patternfly-react/issues/401 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f0e70228329f6606f9f3a73e3e1f79934efdc1c7a5abaa81efff6da4b4da7af/patternfly/patternfly-react/issues/401 |
| og:image:alt | Implement CompoundLabel component which will be used in http://www.patternfly.org/pattern-library/forms-and-controls/filter/#overview and #351 Input props: Name Type Description onDeleteClick funct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PanSpagetka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61 |
| turbo-cache-control | no-preview |
| go-import | github.com/patternfly/patternfly-react git https://github.com/patternfly/patternfly-react.git |
| octolytics-dimension-user_id | 6391110 |
| octolytics-dimension-user_login | patternfly |
| octolytics-dimension-repository_id | 84372347 |
| octolytics-dimension-repository_nwo | patternfly/patternfly-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84372347 |
| octolytics-dimension-repository_network_root_nwo | patternfly/patternfly-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | db758f8e02b8257935fb03edf81a3e76eb3abd11 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width