The List Edit control detailed in How to Configure the GUI Model can be configured to provide options to save a configured list as a new document or as a list attached to an existing document. See Saving lists as documents for more information.
For more information about the client APIs used to enable and configure the List Edit control, see Client APIs.