Title: Extract DataFramePresenter into a class that can be reused · Issue #248 · PolyMathOrg/DataFrame · GitHub
Open Graph Title: Extract DataFramePresenter into a class that can be reused · Issue #248 · PolyMathOrg/DataFrame
X Title: Extract DataFramePresenter into a class that can be reused · Issue #248 · PolyMathOrg/DataFrame
Description: To inspect a DataFrame, we create a Spec table: inspectionItems: aBuilder
Open Graph Description: To inspect a DataFrame, we create a Spec table: inspectionItems: aBuilder
X Description: To inspect a DataFrame, we create a Spec table: inspectionItems: aBuilder <inspectorPresentationOrder: 0 title: 'DataFrame'> | table | table := aBuilder newTable. table addColumn: (Sp...
Opengraph URL: https://github.com/PolyMathOrg/DataFrame/issues/248
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extract DataFramePresenter into a class that can be reused","articleBody":"To inspect a DataFrame, we create a Spec table:\r\n```st\r\ninspectionItems: aBuilder\r\n\t\u003cinspectorPresentationOrder: 0 title: 'DataFrame'\u003e\r\n\r\n\t| table |\r\n\ttable := aBuilder newTable.\r\n\r\n\ttable addColumn: (SpIndexTableColumn new\r\n\t\ttitle: '#';\r\n\t\tsortFunction: #yourself ascending;\r\n\t\tbeNotExpandable;\r\n\t\tyourself).\r\n\r\n\t(self columnNames) doWithIndex: [ :headerName :columnIndex |\r\n\t\ttable addColumn: (SpStringTableColumn\r\n\t\t\ttitle: headerName\r\n\t\t\tevaluated: [ :rowWithName | rowWithName at: columnIndex + 1 ]) ].\r\n\r\n\ttable items: self asArrayOfRowsWithName.\r\n\r\n\t^ table\r\n```\r\nIt would be nice to extract this table into a separate class `DataFramePresenter` that could be reused in different applications to display data frames. In future, we could make this presenter cooler by adding more features (filtering, sorting, searching, etc.)","author":{"url":"https://github.com/olekscode","@type":"Person","name":"olekscode"},"datePublished":"2023-06-01T20:41:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/248/DataFrame/issues/248"}
| 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:33ffed84-c473-0d18-c478-d0e2541f5262 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D334:6D35F:30EB758:40AD0D8:69806720 |
| html-safe-nonce | 4ddaa0e8d09c621e9527e3faeddf118d5849ca8ed9e0180fa8611dff45a60a3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzM0OjZEMzVGOjMwRUI3NTg6NDBBRDBEODo2OTgwNjcyMCIsInZpc2l0b3JfaWQiOiIzNTU1NDgwOTg1NzUzNjQyNzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5f8313f353262cc4c76dd778401ff55aff60b9c8e3b170726badf478bae111bc |
| hovercard-subject-tag | issue:1737058829 |
| 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/PolyMathOrg/DataFrame/248/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4c15cdf6077b3484f776ea80f158df9830cb7d176d44cf803337c2688e15e66/PolyMathOrg/DataFrame/issues/248 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4c15cdf6077b3484f776ea80f158df9830cb7d176d44cf803337c2688e15e66/PolyMathOrg/DataFrame/issues/248 |
| og:image:alt | To inspect a DataFrame, we create a Spec table: inspectionItems: aBuilder |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | olekscode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PolyMathOrg/DataFrame git https://github.com/PolyMathOrg/DataFrame.git |
| octolytics-dimension-user_id | 17797985 |
| octolytics-dimension-user_login | PolyMathOrg |
| octolytics-dimension-repository_id | 90879489 |
| octolytics-dimension-repository_nwo | PolyMathOrg/DataFrame |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 90879489 |
| octolytics-dimension-repository_network_root_nwo | PolyMathOrg/DataFrame |
| 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 | c6a96cd078b54261c0aaa028bdbf4beca00718d1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width