Please explain why isn't 'api' property available on a Grid element?
Since Grid is a custom element, grid element is not defined immediately after the page load. The `api` property will only be available after the element is defined and configured. So, set a method on the `whenDefined` property in the configuration object to handle custom task after the initialization. `whenDefined` method will guaranteed availability of the `api` property on a grid element.