Comments (4)
Elaborating on my previous comment: using Field
components is a bad idea as they're intended for HTML, and contain HTML tags (e.g. <TextField>
outputs <span>foo</span>
).
Besides, the Reference
fields are asynchronous, and as such will be hard to include in a string for the user to download - we'll have to know when all the actions have been dealt with.
So we're left with:
- rewrite all the
Field
components as simple functions, minus the HTML, and rewrite theReference
field logic to bypass Redux and look more synchronous, or - use an export function and leave the reference fetching as an exercise to the user
const PostExport = (props) => (
<Export {...props} render={record => Promise.resolve({
Id: record.id,
UserId: record.userId,
User: ???, // use fetch
Title: record.title.toLowercase(),
Body: record.body,
})}>
);
from react-admin.
@fzaninotto I really need this a lot! Thanks for thinking about that, was any progress made to that, in 'next' for example?
from react-admin.
No, we haven't implemented it in next
. This is still an open issue.
from react-admin.
Implemented in 2.2, see #2034
from react-admin.
Related Issues (20)
- AutocompleteInput in ReferenceArrayInput with dynamic choices shows empty field on selection HOT 5
- Property "resource" in SortButtonProps not involved HOT 2
- Change title property type in core display components <Edit>, <Show>, <View> HOT 1
- Standalone version of the Store for a dual-store strategy HOT 3
- Unable to clear default value in DateTimeInput component HOT 2
- Documented theme level defaultProps overrides do not work for react admin components HOT 4
- Reference Array selected item from a filter query vanishes immediately after selection. HOT 2
- Infinite re-rendering using disabled AutocompleteArrayInput in a ReferenceArrayInput HOT 6
- AutocompleteInput don't keep focus with mouse HOT 5
- Documentation update in sample. HOT 3
- NumberInput's `onBlur` prop does not provide an event object HOT 2
- Add ability to customize query string format for lists HOT 5
- i want to show the received gmail in react js app
- AutoComplete choice listing issue when using useChoicesContext HOT 1
- react admin error with Menu.Item missing properties HOT 6
- storeKey prop is not passed to useRecordSelection hook inside useListController HOT 4
- useEditContext returns null for both values HOT 5
- Infinite loop occurs in page rendering when perPage is set to a negative number in List Component HOT 1
- Codemods are not included in ra-core v5
- Duplicate entries in documentation search HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-admin.