Flatten Header and Footer API into client-side Grid (#13334)

Change-Id: I70d6d79efbf8d6b14d89d836779cbf16173887fc