Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[guides] Finalize Guides for v2.0.0-beta.1 #549

Merged
merged 4 commits into from
Jun 16, 2018

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Jun 15, 2018

This PR updates the docs app for the first beta of v2. Changes include:

  • Converting all curly bracket invocations to angle brackets
  • Adding missing guides pages
  • Adding API docs
  • Shifting examples -> guides (better terminology)
  • Adding/updating intro and landing pages

There is also one minor behavioral change, we've dropped the CellProxy
construct. In writing the guides it became apparent that it was leaky,
and the perf benefits are questionable. For now, cell metas are POJOs.

@pzuraq pzuraq force-pushed the pzuraq/guides/finalize-guides-for-beta-1 branch from aae30f9 to fb5b3a8 Compare June 15, 2018 17:51
This PR updates the docs app for the first beta of v2. Changes include:

- Converting all curly bracket invocations to angle brackets
- Adding missing guides pages
- Adding API docs
- Shifting examples -> guides (better terminology)
- Adding/updating intro and landing pages

There is also one minor behavioral change, we've dropped the `CellProxy`
construct. In writing the guides it became apparent that it was leaky,
and the perf benefits are questionable. For now, cell metas are POJOs.
@pzuraq pzuraq force-pushed the pzuraq/guides/finalize-guides-for-beta-1 branch from fb5b3a8 to 674300c Compare June 15, 2018 18:10
destroy() {
this._cellMeta.destroy();
if (!cellMetaCache.has(cellId)) {
cellMetaCache.set(cellId, EmberObject.create());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we ever teardown the cache properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is torn down by the owner which is the tbody.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my C++ days make me always worried to not see a corresponding destroy to a create

```

@yield {any} cellValue - The value of the cell
@yield {object} columnValue - The column definition
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was there discussions to use columnDefinition instead of columnValue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we ever discussed it. I would be open to that, but I'd like to get this published first and come back to it if we find it's unintuitive.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's fine.


cell=(component "ember-th" api=cell)
enableResize=api.enableResize
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some options here do not seem documented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was intentional. Parts of the API are public, and parts aren't really and are just for communication. In the future ideally we will figure out a way to make these more genuinely private.

related to a particular cell, column, or row. A good example of this is cell
selection, like in Excel.

When you click a cell in excel, the row, column, and cell are all marked as
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excel


An addon to support large data set and a number of features around table. Ember Table can handle over 100,000 rows without and rendering or performance issue. This version of Ember Table supports Ember 1.11 to latest version of Ember.
Ember Table is a power table made for users who need a full-fledged,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we not too "elitist" here? it seems like that it works pretty well out of the box, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean exactly here, can you clarify?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By reading this paragraph, I have a feeling that Ember Table wouldn't be a great fit for people wanting a simple table.

})
rows = [
{
firstName: 'Cyril',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a test to see if I'm doing the code review diligently? 😄

we can find a better example 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I just needed a first name. If you want me to change it I can, no worries

`column`. To customize table header or footer, you can pass in `headerComponent` and
`footerComponent` fields in each column data. When the `headerComponent`(or `footerComponent`) is
defined, the `name`(or `footerValue`) field is ignored.
And viola! You should have a basic table up and running!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voila 🇫🇷


Building that functionality into your Single Page App is a long, tiresome
process, and as the datasets scale it just gets harder. There are a lot of
different off the shelf tables out there, like ag-grid and HandsOnTable, but
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we want to reference other tables.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can remove the references. Mainly wanted to highlight the differences, and why we're better for many use cases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main concern is that I don't know if this could feel outdated each time someone else try to publish a new addon.

@pzuraq pzuraq force-pushed the pzuraq/guides/finalize-guides-for-beta-1 branch from 0a63b77 to 5165279 Compare June 16, 2018 00:17
@pzuraq pzuraq merged commit 4cd1330 into master Jun 16, 2018
@pzuraq pzuraq deleted the pzuraq/guides/finalize-guides-for-beta-1 branch June 16, 2018 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants